SimplyMaya Forums

Welcome to the forum, feel free to ask questions here.


SM Forums / Maya Questions / Programming / WIP: My Raytracer

Programming MEL Scripts, Expressions & Programming Related Topics

Join the conversation. Reply to post
Page 4 of 7 « First 2 3 4 5 6 Last »
 
Thread Tools
27-03-2006, 11:35 PM   #46
MattTheMan
Registered User
 
MattTheMan's Avatar
 
Join Date: Apr 2005
Location: Fairfield, CT
Posts: 2,436
ok i will pick up on this project soon, I promise, just not now...

I will completely redisign the program and add support for hundreds of objects rather then just 3 (which right now has rlly bad code and is very un... good.
__________________
Live the life you love, love the life you live
  Reply with quote
01-04-2006, 02:11 PM   #47
MattTheMan
Registered User
 
MattTheMan's Avatar
 
Join Date: Apr 2005
Location: Fairfield, CT
Posts: 2,436
Ok, so I rewrote it and it can support as many objects as I want.

Sofar I am rewriting the diffuse shading code. This came out wierd, and I can;t tell why
Attached Thumbnails
Click image for larger version

Name:	oddds.jpg
Views:	166
Size:	21.8 KB
ID:	27677  
__________________
Live the life you love, love the life you live
  Reply with quote
01-04-2006, 03:45 PM   #48
MattTheMan
Registered User
 
MattTheMan's Avatar
 
Join Date: Apr 2005
Location: Fairfield, CT
Posts: 2,436
Very odd, my sphere normals are being distorted like this:

the white is where the X value of the sphere normal is less then -0.1 and more than -1
Attached Thumbnails
Click image for larger version

Name:	oddds2.jpg
Views:	165
Size:	67.6 KB
ID:	27681  
__________________
Live the life you love, love the life you live
  Reply with quote
02-04-2006, 01:59 PM   #49
MattTheMan
Registered User
 
MattTheMan's Avatar
 
Join Date: Apr 2005
Location: Fairfield, CT
Posts: 2,436
yay- it works!
Attached Thumbnails
Click image for larger version

Name:	correctds.jpg
Views:	164
Size:	61.3 KB
ID:	27702  
__________________
Live the life you love, love the life you live
  Reply with quote
02-04-2006, 06:31 PM   #50
MattTheMan
Registered User
 
MattTheMan's Avatar
 
Join Date: Apr 2005
Location: Fairfield, CT
Posts: 2,436
I thought it worked- but the x (z in maya terms) direction was screwed up. Now its totally fixed.
Attached Thumbnails
Click image for larger version

Name:	correctds.jpg
Views:	163
Size:	65.9 KB
ID:	27706  
__________________
Live the life you love, love the life you live
  Reply with quote
03-04-2006, 09:38 PM   #51
MattTheMan
Registered User
 
MattTheMan's Avatar
 
Join Date: Apr 2005
Location: Fairfield, CT
Posts: 2,436
shadows work too!
Attached Thumbnails
Click image for larger version

Name:	shadows.jpg
Views:	155
Size:	66.0 KB
ID:	27713  
__________________
Live the life you love, love the life you live
  Reply with quote
03-04-2006, 09:55 PM   #52
MattTheMan
Registered User
 
MattTheMan's Avatar
 
Join Date: Apr 2005
Location: Fairfield, CT
Posts: 2,436
should I even add that spheres cast shadows on spheres too?
Attached Thumbnails
Click image for larger version

Name:	shadowson.jpg
Views:	154
Size:	65.5 KB
ID:	27714  
__________________
Live the life you love, love the life you live
  Reply with quote
04-04-2006, 09:34 PM   #53
MattTheMan
Registered User
 
MattTheMan's Avatar
 
Join Date: Apr 2005
Location: Fairfield, CT
Posts: 2,436
reflections work
Attached Thumbnails
Click image for larger version

Name:	reflection.jpg
Views:	151
Size:	73.3 KB
ID:	27730  
__________________
Live the life you love, love the life you live
  Reply with quote
04-04-2006, 09:57 PM   #54
MattTheMan
Registered User
 
MattTheMan's Avatar
 
Join Date: Apr 2005
Location: Fairfield, CT
Posts: 2,436
specularity works- almost, except for an annoying spot at the bottom, but i'll get rid of that
Attached Thumbnails
Click image for larger version

Name:	spec.jpg
Views:	150
Size:	75.1 KB
ID:	27731  
__________________
Live the life you love, love the life you live
  Reply with quote
05-04-2006, 07:15 AM   #55
skywola
Registered User
 
skywola's Avatar
 
Join Date: Jan 2004
Location: Tempe, Arizona, USA
Posts: 224
Any kind of programming can become just as addicitive as 3D modeling . . . I like programming in MEL because I can do both the programming and build the models, so I am not doing the same thing all the time . . . but for someone who does not really understand programming, they may find it hard to see how it can have much appeal.

Building a raytracer is definately a good exercise, even if it is re-inventing the wheel . . . . and who knows, after you have re-invented the wheel, you may come up with a new feature that no-one has thought of yet, to add to the wheel . . . .
__________________
"The Sage as an Astronomer: If you still see the stars as something above you, you lack the eye of knowledge." Friedrich Nietzsche
  Reply with quote
05-04-2006, 11:21 PM   #56
MattTheMan
Registered User
 
MattTheMan's Avatar
 
Join Date: Apr 2005
Location: Fairfield, CT
Posts: 2,436
thanks skywola
__________________
Live the life you love, love the life you live
  Reply with quote
08-04-2006, 01:05 AM   #57
MattTheMan
Registered User
 
MattTheMan's Avatar
 
Join Date: Apr 2005
Location: Fairfield, CT
Posts: 2,436
WEll, my computer got infected w/ some spyware, and it deleted my friggin cpp file. Sucks. But now I can write an algorithm that is actually recursive, plus I can add support for imported models :attn:

Anyway, I will start coding again tomorrow
__________________
Live the life you love, love the life you live
  Reply with quote
08-04-2006, 12:42 PM   #58
jramauri
Registered User
 
jramauri's Avatar
 
Join Date: Sep 2005
Location: Brazil
Posts: 300
Congratulations for your efforts, Mattthe Man. I'm not a programmer, so I can't judge if what you're doing is an easy or hard task. Anyway, I apreciate so much your attitude, in put the learning task between your priorities. Very good, specially for someone so young.
You'll find in your way people saying to you that is is waste of time, that you must to do other things, bla, bla, bla... But it's bullshit, go ahead with your projects, do what you really want to do. This is what really matters.
I'm looking forward to see your project done. Good luck, dude.
__________________
Portfolio
Low poly model - Tesse
  Reply with quote
11-04-2006, 01:32 AM   #59
MattTheMan
Registered User
 
MattTheMan's Avatar
 
Join Date: Apr 2005
Location: Fairfield, CT
Posts: 2,436
Ok, now I am gonna start real deep and make me a Monte Carlo based Distributional Pathtracer with GI, caustics, soft shadows, glossy reflections, the works. sounds worth a try!
__________________
Live the life you love, love the life you live
  Reply with quote
14-04-2006, 01:49 PM   #60
MattTheMan
Registered User
 
MattTheMan's Avatar
 
Join Date: Apr 2005
Location: Fairfield, CT
Posts: 2,436
Yay- my first GI render!

No just kidding- i was just messing around with Photoshop to see what I could do with it- but hopefully this is what my renders will look like soon!
Attached Thumbnails
Click image for larger version

Name:	sphere.jpg
Views:	100
Size:	56.9 KB
ID:	27892  
__________________
Live the life you love, love the life you live
  Reply with quote
Reply
Page 4 of 7 « First 2 3 4 5 6 Last »

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Thumbnails in WIP & Finished Work Nilla Site News & Announcements 11 09-12-2010 06:22 AM
Asia girl - WIP caligraphics Work In Progress 21 12-03-2004 11:30 AM
WIP critiques - a suggestion Alan Maya Basics & Newbie Lounge 2 14-01-2004 02:48 PM
Commando Rodent Gopher - Concepts + WIP orgeeizm Work In Progress 31 15-10-2003 09:17 PM
FN tactical shotgun WIP [icarus_uk] Work In Progress 7 15-08-2003 05:44 PM