Hi, On Thu, 2004-11-25 at 13:24, Gerrit Voss wrote: > Hi, > > On Thu, 2004-11-25 at 03:23, Matthias Biedermann wrote: > > Hallo Jan, > > > > ich habe zwar leider keine Lösung für dieses seltsame Verhalten, aber > > ich experimentiere selbst gerade damit, mit OpenSG in einen pbuffer zu > > rendern; in meinem Fall benötige ich die ungeclampten float-Werte auf > > der CPU (für weitere, nicht shader-taugliche Berechnungen). Nur bisher > > bekomme ich nicht wirklich viel von meiner HDR-Umgebung zu sehen, sprich > > die Werte sind entweder "garbage" oder auf [0,1] geclampt. Liegt wohl > > sicherlich daran, dass mir dafür das ausreichende OpenSG-Wissen fehlt, > > da Andreas Zieringer mir schonmal gemailt hatte, dass er pbuffer > > erfolgreich einsetzt (jedoch LDR...). > > > > Wie bekommst du die Originalwerte in den pbuffer gerendert, ohne dass > > sie vom normalen OpenSG-Renderingprozess geclampt werden? Welche Art von > > Fenster/Viewport/Background/RenderAction verwendest du dabei? Benutzt du > > dazu Tools wie RenderTexture oder so? Liefert ein glReadPixels() mit > > GL_FLOAT wirklich ungeclampte Werte, bzw. was gibt's für Alternativen, > > um die HDR-floats "as is" auf die CPU zu bekommen. (Die geringe > > Performance von glReadPixels wird durch die wenigen Daten (max. 64x64x6 > > Cubemap) wieder relativiert). > > > > Fragen über Fragen...aber du kannst da sicher etwas (HDR)-Licht ins > > Dunkel bringen...;) > > Schonmal besten Dank für Tipps aller Art! > > small comments, without having it tried with OpenSG directly, in order > to get glReadPixel to return full floating point values, as I don't > think OpenSG is going to clamp values internally. > > First of all you have to have a floatingpoint framebuffer, IIRC every > framebuffer config that can be rendered will be clamped. > > Normally this should be enough to get floating point values out, > just try to render a simple quat with a fragment program writing > -42 values in the framebuffer to see if you can get them back. > > I'll try to get one of my simple examples running with OpenSG so that > you can get it as a starting point.
short question in order to match your problem, how do you get the float values into the buffer, only as the result of fragment/vertex programs, or do you need also external float sources using either Vertex attributes or Textures ?? regards, gerrit ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
