Hi Enrico,

On Fri, 2004-09-17 at 05:20, Enrico Borrione wrote:
> hiya all,
> this sunny morning I came up with more questions about OpenSG:
> 
> 1) is there a callback function that is called every time an object is
> displayed? It could be handy to supply the OGL pipeline with some custom
> parameters.

No, there isn't. You can create your own StateChunk and do OpenGL there,
and you can add that to any Material for it to be automaticall activated
and deactivated. 

Providing OpenGL-capable callbacks per node pretty much kills all
options for state change optimizations (the Performer guys are pretty
unhappy about adding those ;). Adding new features to the general State
management makes for much better integration.

> 2) how many texture units does OpenSG supports for every material?

The current maximum is 16, which is the largest number I know is
supported on any hardware (GX6800).
 
> 3) how may vertex stream does OpenSG supports? I'd like to pass to my
> shaders the tangent, normal, binormal stuff and i was trying to find a
> *smart* way to do the trick.

The current geometry is still based on the old OpenGL model with
vertices, normals, colors etc., and allows 4 texture coordinate sets,
which are the most versatile, typewise.

As Johannes said, there is a helper functions that calculates tangents
and binormals, and puts them into GeoProperties, which you can then pass
in as texture coordinates.

The next generation Geometry will be based on the VertexProgram stream
model, and not have the strict type distinction any more. Given my
current schedule, I can't promise anything about the ETA for that,
though. :((

Yours

        Dirk





-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to