I mean how to use the use pipeline in co-ordination with the cursor.
I don't see what else needs to be documented, there's only 3 things to explain about the cursor and I showed them in my example.
Thats all there is to it.Code:mov #regCursor,1; // Enable the cursor mov #pos.x,#regCursorX; // Get the X value of the cursor mov #pos.y,#regCursorY; // Get the Y value of the cursor
I mean how to use the use pipeline in co-ordination with the cursor.
1) Is there a way to set FOV angle?
2) Is there a way to set the distance of the Near plane (if there is one)?
Aha...
So umm, should I code the polygon clipping (Sutherland-Hodgeman) for GPU? When it's turned on it automatically cuts each triangle exactly where it gets out of FOV (or intersects ZNEAR or ZFAR planes), therefore vertices outside do not get rendered and it doesn't look ugly or strange when parts of a triangle are outside (as seen in [GPU]Minecraft and Matte's gmod in gmod). It also means culling doesn't have to hide these weird faces.
It's not much of an add compared to all other math you have there.
Last edited by Nikita; 11-24-2010 at 01:10 PM.
I suppose this is worthy of a bump.
I updated and removed deprecated information from the older GPU. Anything you read here now should be valid with the newer GPU.
Hey, uh, I got my finals done, so, I'm going to work on my project. But I have a problem: how do I make the GPU get an RGB color from the E2? I'm guessing the code is something like:
GPU:Code:@inputs GPU:wirelink GPU[63488] = 255 GPU[63489] = 0 GPU[63490] = 150
If it's simple, I'm sorry, I'm babysitting this autistic kid and he's having a tizzy fit . So I'm having a hard time figuring this out.Code:dcolor color0; dsetsize 24; dwrite pos,testtxt; dexit; vec2f pos,25,25; color color0,#63488,#63489,#63490; string testtxt,"Test.";
12-year-old Asian kid is smarter than the average 16-year-old Whitey.
Code:mov #color0.r,#63488; mov #color0.g,#63489; mov #color0.b,#63490; dcolor color0; dsetsize 24; dwrite pos,testtxt; dexit; vec2f pos,25,25; color color0,255,255,255; string testtxt,"Test.";
Bookmarks