Simply Maya User Community

Simply Maya User Community (https://simplymaya.com/forum/index.php)
-   Programming (https://simplymaya.com/forum/forumdisplay.php?f=32)
-   -   WIP: My Raytracer (https://simplymaya.com/forum/showthread.php?t=20118)

gster123 12-02-2006 09:25 PM

Your well gettin into hte programming!! Have you done much in MEL??

My C++ was object orientated where you used a blank form and created an interface using the different user imputed attributes to calcualte/look up values, Might try and get back into it using MEL

MattTheMan 12-02-2006 11:35 PM

thanks, and no, i dont know MEL

And magicsy, I have to finish this first, before realyl getting into maya/3ds max again

MattTheMan 13-02-2006 02:05 AM

1 Attachment(s)
Haha! Check dis out!:attn:

MattTheMan 17-02-2006 09:22 PM

1 Attachment(s)
And now it does collisions with spheres too.

MattTheMan 20-02-2006 12:31 AM

Ok, this is the last update before I can render out a picture.

I have a function that shoots 800 x 600 rays (480,000) tests them each against every primitive, finds a collision, gets the primitive color, and (very soon) will apply that color to a pixel.

I just need to find an easy to use graphics library for c++ and I'll show you. Then right after that I will add diffuse shading.

MattTheMan 25-02-2006 06:27 PM

1 Attachment(s)
MY FIRST IMAGE! YAY YAY YAY :attn: :attn:

its not much... but I know how to add diffuse shading, and it will happen a bit later today.

MattTheMan 25-02-2006 08:25 PM

1 Attachment(s)
And diffuse shading. Next up: reflections! :attn:

Tim_LIVID 25-02-2006 08:36 PM

Fast work there Matt

MattTheMan 25-02-2006 08:44 PM

1 Attachment(s)
thanks: and to show you that I added perspective (like, the farther an object is away from the camera, the smaller it appears) a while ago: here

I moved the sphere about 80 units away form the camera and about 30 units to the side

The bad quality is not my raytracer's fault, it is bad JPG compression that MS Paint does.

MattTheMan 26-02-2006 02:40 AM

1 Attachment(s)
And now: The plane reflects! In about 30 minutes, the sphere might reflect too!

and I have to say that it runs waaaaaaaaaaaaaay faster then the Maya Software Renderer. I acheived almost the exact same effect in Maya SR, and it took about 10 seconds to work.

Mine rendered in less then half a second.

MattTheMan 26-02-2006 03:26 PM

1 Attachment(s)
umm... I didnt add sphere reflections, though I have been working on it I have to restart it because it is seriously f***ed up

I added the characteristic that a reflective material adds its color onto the color of the reflected object

MattTheMan 26-02-2006 06:14 PM

1 Attachment(s)
before I make the spheres reflect, I decided to optimize my main rendering code and to add another sphere (so the sphere reflcetions look cooler)

Well, I could add as many primitives as I want now, but it took me a while to do...

I might make the light a white sphere, so you can see where it is.

I need to make the blue sphere reflect off of the plane though

MattTheMan 26-02-2006 06:54 PM

1 Attachment(s)
and the second sphere is reflected too

gster123 27-02-2006 06:01 PM

Cool work man, keep going!

Falott 27-02-2006 07:13 PM

respect mat!

if you are 13 and doin stuff like this now, you´ll earn a heck lot of money later in your life! keep it comin!


All times are GMT. The time now is 10:38 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Simply Maya 2018