Logo by stereoman - Contribute your own Logo!

END OF AN ERA, FRACTALFORUMS.COM IS CONTINUED ON FRACTALFORUMS.ORG

it was a great time but no longer maintainable by c.Kleinhuis contact him for any data retrieval,
thanks and see you perhaps in 10 years again

this forum will stay online for reference
News: Visit us on facebook
 
*
Welcome, Guest. Please login or register. January 17, 2019, 04:55:17 AM


Login with username, password and session length


The All New FractalForums is now in Public Beta Testing! Visit FractalForums.org and check it out!


Pages: 1 [2]   Go Down
  Print  
Share this topic on DiggShare this topic on FacebookShare this topic on GoogleShare this topic on RedditShare this topic on StumbleUponShare this topic on Twitter
Author Topic: A few questions  (Read 967 times)
0 Members and 1 Guest are viewing this topic.
_revers_
Conqueror
*******
Posts: 138



« Reply #15 on: April 23, 2016, 05:37:18 PM »

Indeed, "fragxRenderer.setUniformFloat()" is a way to go.

But I can see that there is a bug: if "Remember parameters between builds" is selected in the Uniform Controls View (a star icon), then if you set some uniforms in the init() function or in the global scope of the script then it will be overwritten by value from before the build. You can deselect "Remember parameters between builds" option or do workaround, by setting uniforms in the first frame:

Code:
var doSetUniforms = true;

renderable.display = function() {
if (doSetUniforms) {
doSetUniforms = false;
fragxRenderer.setUniformFloat("TestUniform", 0.6);
}
// [...]
fragxRenderer.render();
       // [...]
}

As of not highlighting errors in the JavaScript editor. The truth is that Eclipse has very poor JavaScript editor with lack of a lot of functionalities available in C/C++ (GLSL) editor. Unfortunately I cannot do anything with that.
Logged
Patryk Kizny
Global Moderator
Fractal Fertilizer
******
Posts: 372



kizny
WWW
« Reply #16 on: April 23, 2016, 06:37:25 PM »

Huge thanks!
Looks like it helped temporarily.

- I still have an issue with SC crashing on every other compile (only when doing JSX, never happens with fragx). But nothing goes into the log.
- Another problem I encountered is that when I run my shader within JSX, the Render mode switches to animation, progressive is disabled and it looks like the buffer is never cleared between frames. It's like every next frame is rendered on top of a previous one. Is that a bug or I should be doing something special to make it work?
-


* Capture.JPG (42.11 KB, 761x759 - viewed 166 times.)

* JSX.JPG (19.48 KB, 950x645 - viewed 159 times.)

* fragx.JPG (22.47 KB, 1109x650 - viewed 157 times.)
Logged

Visual Artist, Director & Cinematographer specialized in emerging imaging techniques.
Pages: 1 [2]   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Hi. I'm Daniel. I have some questions Meet & Greet Daniel_P 4 929 Last post January 01, 2010, 09:19:11 AM
by Nahee_Enterprises
Some Mandelbulber Questions Mandelbulber mephisto69 3 1931 Last post October 19, 2010, 02:59:05 PM
by jwm-art
Some questions Theory Cobbles 8 2411 Last post June 22, 2011, 05:51:07 PM
by Cobbles
iam new so i have some questions JWildfire Nacer 3 478 Last post November 09, 2013, 07:23:48 PM
by Nacer
2 Mandelbrot Remix Questions Mandelbrot & Julia Set MateFizyChem 4 274 Last post October 25, 2016, 11:11:04 PM
by MateFizyChem

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM
Page created in 0.105 seconds with 28 queries. (Pretty URLs adds 0.007s, 2q)