Logo by Fiery - 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: Check out the originating "3d Mandelbulb" thread here
 
*
Welcome, Guest. Please login or register. April 20, 2024, 01:09:09 PM


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]   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: new tech-demo: Parallax Mapping  (Read 1930 times)
0 Members and 1 Guest are viewing this topic.
_revers_
Conqueror
*******
Posts: 138



« on: August 28, 2014, 12:22:11 AM »

I've added a new tech-demo: Parallax Mapping.
I've also finally updated FAQ with the question: Why there is no Synthclipse perspective after first Eclipse startup?
Logged
cKleinhuis
Administrator
Fractal Senior
*******
Posts: 7044


formerly known as 'Trifox'


WWW
« Reply #1 on: September 23, 2014, 02:05:40 AM »

nice example, paralax mapping is one of the coolest things gpus enable us wink
nevertheless, i had no time to look into the jsx coding of synthclipse sad
Logged

---

divide and conquer - iterate and rule - chaos is No random!
_revers_
Conqueror
*******
Posts: 138



« Reply #2 on: September 23, 2014, 09:57:17 AM »

Yeah, parallax mapping is a cool effect. Height mapping in general is fun, like for example generating terrain from a noise texture or function.

JSX scripts aren't hard to write. The best way to learn how to do it is to examine/read examples from the main menu "Synthclipse -> JSX examples...". In every script, in header comment, there are references to the documentation of particular classes used in it.

If you have any problems or questions, just let me know. I'll try to help you.
Logged
cKleinhuis
Administrator
Fractal Senior
*******
Posts: 7044


formerly known as 'Trifox'


WWW
« Reply #3 on: September 23, 2014, 10:23:26 AM »

yeah, i have not a concrete idea for what it would be useful to use

the only thing i can imagine for what it could be useful is to have more than a single time variable that the script depends on, because for the stuff i do i want to change some speeds without changing current view, e.g. if a time*timeFactor part of the script controls a certain rendering, if one changes the "speed" variable the result jumps around because it is only dependent of the "time" variable

so, for changing speeds an external "count" variable has to be maintained without chaning its value when speed changes, this is something i need for vjing stuff,to change speeds of certain parameters, which is what such a jsx script could handle
Logged

---

divide and conquer - iterate and rule - chaos is No random!
_revers_
Conqueror
*******
Posts: 138



« Reply #4 on: September 23, 2014, 11:52:10 AM »

Do you mean functionality like below?

Suppose we have following uniform variable in SomeShader.stoy file:
Code:
uniform float MyTime;

JSX script then could set it using some Timer like this:
Code:
var fragxRenderer = null;
var timer = new Timer();

renderable.onAnimationChanged(state) {
switch(state) {
case "PAUSE":
timer.pause();
case "STOP":
timer.stop();
case "PLAY":
timer.start();
}
}

renderable.init = function() {
fragxRenderer = Synthclipse.loadFragx("SomeShader.stoy");
};

renderable.display = function() {
fragxRenderer.setUniform("MyTime", timer.getTime());
fragxRenderer.render();
};

It is not working code in current Synthclipse version. I just want to know is it conceptually what you would like to achieve?
Logged
Pages: [1]   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Mandelbox 4k demo 3D Fractal Generation knighty 11 3951 Last post May 08, 2010, 08:29:22 PM
by knighty
Mapping out the Mandelbrot Mandelbrot & Julia Set twinbee 4 2827 Last post August 11, 2010, 12:39:19 AM
by cKleinhuis
Fractal Demo in 2D & 3D Movies Showcase (Rate My Movie) FractalFoundation 5 1539 Last post November 29, 2010, 07:37:07 PM
by bib
Turning the camera without parallax Mandelbulb 3d barcud 9 2971 Last post May 09, 2012, 04:20:12 PM
by barcud
Alien Tech Animations Showcase (Rate My short Animation) Kali 6 1690 Last post June 07, 2015, 08:57:57 PM
by 3dickulus

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.132 seconds with 25 queries. (Pretty URLs adds 0.009s, 2q)