91
Math and Science / Re: Understanding Shading
« on: August 26, 2011, 05:01:10 pm »
I think I want the angle between -R and V but I'm not sure how to get R.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to. 91
Math and Science / Re: Understanding Shading« on: August 26, 2011, 05:01:10 pm »
I think I want the angle between -R and V but I'm not sure how to get R.
92
Math and Science / Re: Understanding Shading« on: August 26, 2011, 04:56:54 pm »
But how do I find it and what should I do with it once I have it and why? This is beyond what we covered in math class.
93
Math and Science / Understanding Shading« on: August 26, 2011, 04:52:03 pm »
I am working on a Lua function that creates a TI Image of a 3D object made of triangles but I don't know how to determine what shade the pixel should be.
I have looked at some websites but they either didn't get into detail or they used notation or syntax I'm not familiar with. This is the relevant information I have: camera position light source position the points that make up the triangle the equation of the plane the triangle lies in point where the camera view intersects the plane the original color of the triangle If anyone understands how Phong shading (or something similar) works, explaining it at a precalculus level would be much appreciated. Something like this is what I am thinking of but I don't know how it works. I know about vectors but I don't understand what R is. Thank you 94
Lua / Re: Lua Q&A« on: August 19, 2011, 01:10:13 am »
I was doing a similar thing just a few days ago. I have a hunch it is related to collectgarbage. (http://www.lua.org/manual/5.1/manual.html Section 2.10.1)
It's probably a meta method, and is probably not ment to be used in normal scripts I agree with jimbauwens, it isn't meant to be used in the script itself. 95
Lua / Re: Lua Q&A« on: August 14, 2011, 12:48:05 pm »
If that's the case then I'm glad I didn't try to send it to my calculator.
96
Lua / Re: Lua Q&A« on: August 14, 2011, 12:03:14 pm »
Thanks. That would probably explain the lack of documentation on it. I'm still curious why the student software just closes instead of giving an error message or something.
97
Lua / Re: Lua Q&A« on: August 14, 2011, 01:34:55 am »
Does anyone know what the function image.__gc does? When I try to paste code including image.__gc() into the student software, the software closes. I have no idea what this function does. There isn't anything useful in the mere 87 results I had on Google when I searched "image.__gc". When I searched __gc most of it was C++ stuff.
98
Introduce Yourself! / Re: Hello.My name is 3rik.« on: August 09, 2011, 01:03:36 pm »
My CX is currently running OS 3.0.2.1791.
99
Introduce Yourself! / Re: Hello.My name is 3rik.« on: August 09, 2011, 12:44:44 pm »
Thanks for the peanuts yunhua98 but I know better than to click on links that go to starcraft.swf
As for Lua, I am currently reading a book and some tutorials to learn the basics. When I get to Nspire Lua I'll defiantly go to http://www.inspired-lua.org. 100
Introduce Yourself! / Re: Hello.My name is 3rik.« on: August 08, 2011, 11:45:57 pm »
Okay I have Xchat set up. It looks easy enough to use.
101
Introduce Yourself! / Re: Hello.My name is 3rik.« on: August 08, 2011, 11:25:50 pm »
I'm aware of IRC but I've never actually used it. I've seen the logs of the channel and I once found it on efnet.org so I kind of understand how it works.
102
Introduce Yourself! / Re: Hello.My name is 3rik.« on: August 08, 2011, 11:09:41 pm »
Thanks. I'll keep it in mind for when I create something worth archiving.
103
Introduce Yourself! / Re: Hello.My name is 3rik.« on: August 08, 2011, 11:03:52 pm »
No. Should I register? I don't know very much about ticalc.org. What advantages does it have over Omnimaga?
104
Introduce Yourself! / Re: Hello.My name is 3rik.« on: August 08, 2011, 10:59:51 pm »
I have been reading Omnimaga for the past month or two. I've just been building up the courage to register.
105
Introduce Yourself! / Re: Hello.My name is 3rik.« on: August 08, 2011, 10:52:00 pm »
Thank you for the welcoming greetings and for the peanuts.
If I have any questions I'll ask. P.S. I noticed while registering that the rules on the register page don't match the rules on the rules page |
|