Re: [osg-users] second-order equation

2010-12-02 Thread Robert Osfield
Hi Kurt,

On Thu, Dec 2, 2010 at 6:09 AM, Cracj Kurt couple...@mail.ru wrote:
 Surface , for example z= sin(x)sin(y).

 I see only one solution. Calculate the value of a formula written into the 
 matrix and show the shape. But  may exist complete class or method...

There are many solutions, but the one you suggest I can't make any sense from.

Down on the gpu you can use sin functions, and the osgparametric
example is a good example of this so have a look at it.  The
osgparametric example creates a large flat mesh with z value of 0,
then it uses a vertex shader to take the x and y quantities to compute
the z value, along with a uniform that provide a time varying quantity
that animates the resulting mesh.

Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] second-order equation

2010-12-01 Thread Cracj Kurt
Hi,

how can I draw a second-order equation?
what class\methods need use?

Thank you!

Cheers,
kurt

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=34265#34265





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] second-order equation

2010-12-01 Thread Robert Osfield
Hi Kurt,

On Tue, Nov 30, 2010 at 3:16 PM, Cracj Kurt couple...@mail.ru wrote:
 how can I draw a second-order equation?

An impressive lack of information to go on there... what do you mean
by draw a second-order equation?  What exactly are you expecting?
Lines?  Surfaces? Volumes?

 what class\methods need use?

osgMindReader::DoAnythingICanImagineButNeedn'tBotherExplainingWhatImean class.

Since I don't really know what you are after, I have to take the safe
route and say the OSG can't do what you are wanting out of the box as
we don't have a osgMindReader NodeKit yet.

However, modern vertex shaders are very flexible and given the right
input data and shader code can do pretty complex things with lines and
surfaces. So I no doubt that if you can work out what you actually
need then you can probably implement it.

Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] second-order equation

2010-12-01 Thread Cracj Kurt
Surface , for example z= sin(x)sin(y).

I see only one solution. Calculate the value of a formula written into the 
matrix and show the shape. But  may exist complete class or method...

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=34384#34384





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org