Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
I want to LOG the fps to external file generated by the code. How could I do that? I mean accessing the fps somehow which is printing on browser, please help me |
||||
|
Also, I need help for:
I don't want custom shader to render my texture, in fact I don't need any Texture, instead I should be able to pass some color to view the object. I need both these help. I couldn't find any example resource for the two problems. @niko, I hope you could solve me problem for these two. |
||||
|
What I really meant is: Now I'm having output like this with Texture: But I want like this: also I need FPS to be accessed somehow for storing in database or file. Could you please help with that. |
||||
|
For the color part, as fragment shader, use something like this:
Like in this tutorial: http://www.ambiera.com/copperlic... For logging the fps: Maybe you could just constantly get the content of the DOM element with the FPS text and save it? |
||||
|
wrote: For the color part, as fragment shader, use something like this:
Like in this tutorial: http://www.ambiera.com/copperlic... For logging the fps: Maybe you could just constantly get the content of the DOM element with the FPS text and save it? Thanks for the reply, yea at least I want to be able to access "FPS" dom element which is printing the FPS. How can I do that? Don't the copperlicht have in-built material function to code the colors? I mean is that mandatory to use the explicit shader program? |
||||
|
Yes, you could also alternatively change the colors in all vertices of the mesh. Then you don't need any shader. I think you might get the fps dom element using CL3D.gCCDebugOutput.FPSRootText |
||||
|
wrote: Yes, you could also alternatively change the colors in all vertices of the mesh. Then you don't need any shader. I think you might get the fps dom element using CL3D.gCCDebugOutput.FPSRootText Please provide me code snippet for color coding, I need all the cubes to be green in color, for that how can i set the color without taking help of shader program. and CL3D.gCCDebugOutput.FPSRootTextis returning "object text" as an output. I even tried to convert it to number by typecasting, it is returning NaN. Please, I want bit quick reply on these two since my time constraint demanding so. I hope you understand |
||||
|
It's a DOM element. You get its value using CL3D.gCCDebugOutput.FPSRootText.nodevalue. |
||||
|
wrote: It's a DOM element. You get its value using CL3D.gCCDebugOutput.FPSRootText.nodevalue. Thanks, I'm able to access. But for coloring cubes, without custom shader program, how could I do that? sample snippet please. i'm using CubeSceneNode. |
|