Hi,

AFAIK the char* is only used to point to the start of the data. You can point to floats no problem, just set the texture format correctly. Maybe have a look at what osgprerender --hdr does.

jp

Roman Grigoriev wrote:
Good day!

I’d like to setup some float textures by reading them from data files. But I found that I can only setup unsigned char images by using this method.

Of cause I can setup by setting float values in the loop, but maybe it will more comfortable to have setData method with float values.

Will this feature added to osg or maybe there are some difficulties with it?

Thanx in advance

Bye


------------------------------------------------------------------------

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.

This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support.

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to