Carsten Neumann wrote:
>       Hello Marcus,
> 
> Marcus Lindblom wrote:
>> Carsten Neumann wrote:
>>> Marcus Lindblom wrote:
>>>> not necessarily the entire path from root to node. 
>>>> (Although it might be handy to have as well...)
>>> Maybe, but then you'd need a stack of Node * as well and make sure every 
>>> Node on the path gets pushed/popped, instead of only those that change 
>>> the transformation matrix - I guess a suitable default functor could be 
>>> used.
>> Hm. I'll have to look into how the Actions work more closely to attempt 
>> that. I don't need it know anyhow.
> 
> sorry, it seems I was thinking of the NewAction stuff I had written for 
> 1.x some time ago. There you could register a function that was called 
> when no type specific function was registered.

I actually don't know much about actions in either version. :-|

>>>> Does it seem a reasonable thing to fix?
>>> sure, providing the to-world matrix seems like a better idea than e.g. 
>>> computing the tex coords of the hit point (otherwise next month it might 
>>> become necessary to compute/store tangent space as well, etc.)
>> No, I still need the tex-coords, as we have separate images to indicate 
>> different semantics on various parts of an object. I could of course add 
>> this code into IntersectAction to allow the user to compute other 
>> interpolated attributes at the intersection point. Just provide the 
>> attribute array index and it'll do the rest.
> 
> sorry, I meant to say that it makes more sense to have the IA provide 
> the matrix for the hit object, instead of having it compute/store tex 
> coords for the hit point. The former can be used to compute all sorts of 
> useful data, the latter is just what you need right now and I was 
> worried that that might not scale well.

My plan was to have the IA provide that computation on request 
afterwards. Of course, a general utility function could also be used (in 
the triangle iterator).

The to-world is also useful, and having that (or just the local point) 
would allow the IA to compute interpolated attributes afterwards.

> hm, and seeing Dirks mail he seems to prefer something even more general ;)

Indeed. :)

/Marcus


------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to