Oberon Community Platform Forum
December 12, 2019, 08:46:31 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Tracer Demo  (Read 6566 times)
soren renner
Global Moderator
Full Member
*****
Posts: 216



« on: February 24, 2008, 08:20:03 PM »

open the file srRenderTools.Text and compile all the files.

then run the tracer.

does this work for you?

[demo attachment removed. see update below]
« Last Edit: February 27, 2008, 08:42:51 PM by soren renner » Logged
staubesv
Administrator
Sr. Member
*****
Posts: 387



« Reply #1 on: February 25, 2008, 05:23:26 PM »

I could compile and run the demo.
Logged
soren renner
Global Moderator
Full Member
*****
Posts: 216



« Reply #2 on: February 25, 2008, 07:10:46 PM »

Woo hoo!

OK I will work on a new "world" for you to fly around in.

Logged
soren renner
Global Moderator
Full Member
*****
Posts: 216



« Reply #3 on: February 27, 2008, 06:40:15 PM »

Try this. The second file is a short movie in ogg theora format. VLC can play it (not on Oberon of course.)

You should be able to reproduce the movie (approximately) by flying around in the tracer. You will want to use keyboard commands, all of which can be inspected in the source code (srRender.Mod):

[ defisheye
] fisheye
SPACE   halt camera motion
+   speed camera
-    slow camera
c    increase recursion on fractal objects
v    decrease recursion


* tracer.tar.gz (535.85 KB - downloaded 439 times.)
* t.ogg (356.96 KB - downloaded 400 times.)
Logged
soren renner
Global Moderator
Full Member
*****
Posts: 216



« Reply #4 on: February 27, 2008, 07:59:08 PM »

The world here is very simple, consisting of transparent blue M2Cell containing with a transparent white Bloc10 cube which is empty except for one subcube which is a SerpBloc made of a white diffuse-shaded cube sierpinskied with an M2Cell voxel-rasterized with a sphere of yellow cubes which are normal-shaded according to their position in the sphere.

Please ask me to explain one part of the above; I don't know where you would like me to begin.


MODULE srvoxels;
...

   NEW(DAISY);  (*M2Cell*)
...
   srBase.setCOLOR(yellow,1,1,0);   
...
   FOR i:=0 TO 13900 DO
      srBase.randnormPT(q);
      qq:=q;
      q.x :=1/2 + q.x/3;
      q.y := 1/2+ q.y/3;
      q.z := 1/2 + q.z/3;
      DAISY.stroke(q,5,qq,yellow,FALSE);      (* voxel-rasterization of sphere *)
   END;     
...
   NEW(SERP[4],WHITE,DAISY);   
   NEW(b10);                  (* 10x10x10 cube of voxels *)
   srBase.setPT(p,1/2,1/2,0);
   b10.SetColor(1,1,1,0);      (* transparent white *)
   b10.blox[3,7,8]:=SERP[4];   (* embedding *)
   NEW(cage);          (* M2Cell *)
   cage.SetColor(0,0,1,0);       (* transparent blue *)
   srBase.setPT(p,0.45,0.45,0.45);
   cage.strokevoxel(p,3,b10);        (* embedding *)
   srBase.world:=cage;   
...
Logged
staubesv
Administrator
Sr. Member
*****
Posts: 387



« Reply #5 on: July 23, 2008, 10:44:13 AM »

I recently ran the ray-tracer on our 8-core machine. In the smaller window, it runs absolutely smooth  Cool
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!