Hi Oliver,

this only has to be done if the image size changes. If you have many textures
with different sizes in which you want to render, it is better to assign each
of them a different FBOViewport. BTW, perhaps you also want to try a more
current daily build, because there have been some fixes since 1.8.

Bye
Yvonne

Am Fr, 9.05.2008, 18:52, schrieb Oliver Kutter:
> Hi Yvonne,
>
> thanks, that's it. But now it is very very slow. Can't I just call the
> dirty function once or is there another way to do whatever this function
> does?
>
> regards,
> Oliver
>
> Yvonne Jung schrieb:
>> Hi Oliver,
>>
>> you also need to set the dirty flag.
>>
>> Bye,
>> Yvonne
>>
>>> Hi,
>>>
>>> I was not working for a very long time with OpenSG. At that time I
>>> used OpenSG 1.6 with an alpha Version of Yvonne Jung's FBOViewport class.
>>>
>>> Now I was trying to get it running again with the Windows Install
>>> Version 1.8. As information, I'm doing some general purpose
>>> computation with the fbo class.
>>> It's nearly working, but when I'm rendering to texture and I'm
>>> changing the size of the texture, e.g. 256x256 to 128x128, I'm getting
>>> this warnings:
>>>
>>> WARNING:  FBO render post OpenGL Error: (null)!
>>> WARNING:  8cd9: framebuffer FRAMEBUFFER_DIMENSIONS
>>>
>>> and I think, this leads to the fact, that my programm is not working
>>> correctly.
>>>
>>> This is my code how I'm changing the size of the texture and the fbo
>>> storage. The code was working the the old 1.6 and alpha fbo class version.
>>>
>>> beginEditCP (fboViewport, FBOViewport::StorageWidthFieldMask |
>>> FBOViewport::StorageHeightFieldMask);
>>>   fboViewport->setSize(0, 0, width-1, width-1);
>>>   fboViewport->setStorageWidth(width);
>>>   fboViewport->setStorageHeight(height);
>>> endEditCP (fboViewport, FBOViewport::StorageWidthFieldMask |
>>> FBOViewport::StorageHeightFieldMask);
>>>
>>> beginEditCP(fboImage);
>>>   fboImage->set(Image::OSG_RGBA_PF, width, height, 1, 1, 1, 0, NULL,
>>> Image::OSG_FLOAT32_IMAGEDATA);
>>> endEditCP(fboImage);
>>>
>>>
>>>
>>> Anyone ideas?
>>>
>>> regards,
>>> Oliver
>>> ------------------------------------------------------------------------
>>>
>>> -------------------------------------------------------------------------
>>> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
>>> Don't miss this year's exciting event. There's still time to save $100.
>>> Use priority code J8TL2D2.
>>> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Opensg-users mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/opensg-users
>>>
>>>
>>
>>
>>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Don't miss this year's exciting event. There's still time to save $100.
> Use priority code J8TL2D2.
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone_______________________________________________
> Opensg-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/opensg-users
>


---
Yvonne Jung
Fraunhofer-IGD    | Tel.: ++49-6151-155-290
Fraunhoferstr. 5  | Fax.: ++49-6151-155-196
64283 Darmstadt   | email: [EMAIL PROTECTED]
Germany           | http://www.igd.fhg.de/igd-a4


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to