Few Questions

Naman Gupta <[email protected]> Tue, 13 May 2014 01:41:38 +0530
Newsgroups gmane.comp.graphics.crystalspace.devel
Message-ID <CAJ4hSG3UZHim2LC9_qT1gJGX78Eo41O6qG3HCFwy-pBaw=87Yg@mail.gmail.com>
--===============6439144529686551193==
Content-Type: multipart/alternative; boundary=001a11363d080d11cd04f9398eb1

--001a11363d080d11cd04f9398eb1
Content-Type: text/plain; charset=UTF-8

Hi,

    I encountered few problem would appreciate if someone could answer.

1). Is there a way to retrieve information about the adjacent vertex in
vertex shader?

2). The water waves are created by translating heightmaps in waterdemo2,
upon closing looking, you could see the waves aren't translating smoothly
because color values are discrete. This is the shader code
" ...
vec2 Texcord = texCoord + waveInput.time*10.0 ;
position_object.y += texture2D(texHeight, Texcord/128).r * 2.0;
..."
Is there are way to like interpolate the values between two consecutive
colors to make waves go smoother?

2). How do we add texture to the inner side of a box generated like this
"...
  CS::Geometry::DensityTextureMapper mapper (0.3f);
  CS::Geometry::TesselatedBox box (csVector3 (0, 0, 0), csVector3 (10, 10,
10));
  box.SetLevel (3);
  box.SetMapper (&mapper);
  box.SetFlags (CS::Geometry::Primitives::CS_PRIMBOX_INSIDE);

  // Now we make a factory and a mesh at once.
  csRef<iMeshWrapper> walls =
CS::Geometry::GeneralMeshBuilder::CreateFactoryAndMesh (
  engine, room, "walls", "walls_factory", &box);
..."

I'm trying to make a skybox.


Also, Could someone get the search functionality working on the
documentation given in the link "
http://www.crystalspace3d.org/docs/online/manual/"?

~N

--001a11363d080d11cd04f9398eb1
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi,<br><br><span class=3D"">=C2=A0 =C2=A0 I encountered fe=
w problem would appreciate if someone could answer.<br><br><span class=3D""=
>1). Is there a way to retrieve information=C2=A0about the adjacent vertex =
in vertex shader?<br>
<br>2). The water waves are created by translating heightmaps in waterdemo2=
, upon closing looking, you could see the waves aren&#39;t translating smoo=
thly because color values are discrete. This is the shader code<br><span cl=
ass=3D"">&quot; ...<br>
vec2 Texcord =3D texCoord + waveInput.time*10.0 ;</span><br>position_object=
.y +=3D texture2D(texHeight, Texcord/128).r * 2.0;<br>...&quot;<br>Is there=
 are way to like interpolate the values between two consecutive colors to m=
ake waves go smoother?=C2=A0=C2=A0<br>
<br>2). How do we add texture to the inner side of a box generated like thi=
s=C2=A0<br>&quot;...<br>=C2=A0 CS::Geometry::DensityTextureMapper mapper (0=
.3f);<div>=C2=A0 CS::Geometry::TesselatedBox box (csVector3 (0, 0, 0), csVe=
ctor3 (10, 10, 10));</div>
<div>=C2=A0 box.SetLevel (3);</div><div>=C2=A0 box.SetMapper (&amp;mapper);=
</div><div>=C2=A0 box.SetFlags (CS::Geometry::Primitives::CS_PRIMBOX_INSIDE=
);</div><div><br></div><div>=C2=A0 // Now we make a factory and a mesh at o=
nce.</div><div>=C2=A0 csRef&lt;iMeshWrapper&gt; walls =3D =C2=A0 CS::Geomet=
ry::GeneralMeshBuilder::CreateFactoryAndMesh (</div>
<span class=3D"" style=3D"white-space:pre">	</span> =C2=A0engine, room, &qu=
ot;walls&quot;, &quot;walls_factory&quot;, &amp;box);<br>...&quot;<br><br>I=
&#39;m trying to make a skybox.=C2=A0<br><br><br>Also, Could someone get th=
e search functionality working on the documentation given in the link &quot=
;<a href=3D"http://www.crystalspace3d.org/docs/online/manual/">http://www.c=
rystalspace3d.org/docs/online/manual/</a>&quot;?<br>
<br>~N</span></span></div>

--001a11363d080d11cd04f9398eb1--


--===============6439144529686551193==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
--===============6439144529686551193==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Crystal-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/crystal-develop

--===============6439144529686551193==--