generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

[ Content Deleted ]

Previous Thread :: Next Thread 
Oysi is not online. Oysi
Joined: 06 Jul 2009
Total Posts: 9058
16 Jul 2013 11:51 AM
[ Content Deleted ]
Report Abuse
stravant is not online. stravant
Forum Moderator
Joined: 22 Oct 2007
Total Posts: 2893
16 Jul 2013 12:05 PM
As for why it's not possible: Shaders are run in parallel: Therefor they can't really be recursive, because during the recursion, two different instances of the shader may diverge significantly, and that makes running lots of them in parallel really hard.
Report Abuse
Oysi is not online. Oysi
Joined: 06 Jul 2009
Total Posts: 9058
16 Jul 2013 04:05 PM
[ Content Deleted ]
Report Abuse
Tenal is not online. Tenal
Joined: 15 May 2011
Total Posts: 18684
16 Jul 2013 04:05 PM
sup stravant long time no see
Report Abuse
BlueTaslem is not online. BlueTaslem
Joined: 11 May 2008
Total Posts: 11060
16 Jul 2013 04:14 PM
Try hard coding only, say, 3 levels of reflection? Would that be that bad?
Report Abuse
Oysi is not online. Oysi
Joined: 06 Jul 2009
Total Posts: 9058
16 Jul 2013 04:21 PM
[ Content Deleted ]
Report Abuse
Oysi is not online. Oysi
Joined: 06 Jul 2009
Total Posts: 9058
17 Jul 2013 03:38 AM
[ Content Deleted ]
Report Abuse
Radioaktiivinen is not online. Radioaktiivinen
Joined: 25 Apr 2009
Total Posts: 18629
17 Jul 2013 05:40 AM
I dont think you can loop a variable amount of times.

You either should loop a fixed amount of times and ignore the results of excess iterations, or use multiple passes somehow (lets say tile the screen so some areas of the screen loop more times, so you dont waste time on rendering sky)
Report Abuse
Oysi is not online. Oysi
Joined: 06 Jul 2009
Total Posts: 9058
17 Jul 2013 04:26 PM
[ Content Deleted ]
Report Abuse
Aerideyn is not online. Aerideyn
Joined: 16 Jan 2010
Total Posts: 1882
17 Jul 2013 06:42 PM
Loops are fine, (for,while and what not) but even then the shader unrolls it into 1 big command so it that case it's effectively just syntactic sugar.
But you can't unroll recursion because you can't really know how deep it will go at compile time.

So by just copying and pasting it you are just doing what the compiler does anyway if it knew how, shaders require thinking a little differently sometimes - perhaps you can refactor it in a way in where you don't need recursion at all?
Report Abuse
xXxMoNkEyMaNxXx is not online. xXxMoNkEyMaNxXx
Joined: 03 Oct 2008
Total Posts: 3120
17 Jul 2013 08:01 PM
Have you got dem fresnels going too? :)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image