OK, I will explain what i am trying to do...
I am trying to implement a z buffer algorithm for a software renderer. Pixels come in with a particular depth between 0.0 and -1.0. I want to be able...
Type: Posts; User: appleGuy
OK, I will explain what i am trying to do...
I am trying to implement a z buffer algorithm for a software renderer. Pixels come in with a particular depth between 0.0 and -1.0. I want to be able...
Its not the literal displayed values... ill try to give an example
-1.0 = 255, 255, 255
-0.x = ???, ???, ???
0.0 = 0, 0, 0
Hi,
I want to be able to convert a float to 3 unsigned chars (as in part of the float in each unsigned char) and also be able to compare the float to the equivalent value of the 3 unsigned chars....
Hi,
I am trying to draft out a design for a plugin architecture. Included Is a simple diagram scribing my thoughts:
http://img.photobucket.com/albums/v315/blade99261/plugin_architecture.png
...
Hi,
Sometimes when I use NULL the compiler spits out an error saying NULL is not defined. Could anyone tell me the reason (in general) why this would happen.
Cheers
Alex
So in connect 4, each node including the root is an 2D ARRAY ?
Also its not just the computers moves for every level of the tree..its also the humans possible moves.
so for a 7 column grid....
Hi,
So for simplicity its a computer vs human match. Obviously the algorithm is for a computer move decision. So when the computer has to play its move, is the root of the tree (MAX) the humans...
Hi,
Trying to understand the minimax algorithm for a connect 4 game:
http://ai-depot.com/articles/minimax-explained/
Would you create a tree for each of the columns on the connect 4 board. so...
Ok i only got the ray casting idea from a voxel terrain tutorial. Could you please explain further the proper technique?
Thanks
-Alex
Yeah,
Had a look through it. Not really what I wanted, it seems to cut many corners to get a good frame rate.
All I want really is an algorithm (simple not optimised) to calculate the closest...
No.
There is a view Plane (The eventual image you see). You shoot a ray from a constant point through each pixel on the view plane. Follow the ray through until it hits the closest voxel in its...
Yes, something like that.
However, that takes shortcuts and uses strips and other optimizations that I don't want. I ideally want it to cast through every pixel on the view plane and calculate the...
Hi,
Im trying to build a voxel renderer, however im going to need some help as I am a total beginner to this.
Im going to use the ray casting technique, and im going to cast through every pixel...
Ok thanks!
-Alex
Hi,
I need a structure that holds just 3 variables. Which (Class or struct) has the smallest memory footprint or are they both the same in size?
Many Thanks
-Alex
I KNOW...
its just practice, breaking down a problem into smaller problems and using those to answer to larger problem.
Hi,
Im just getting round the concept of recursion and have been doing a few set practice questions.
One was to count the characters in a word (recursively)
The other was to count the number...
ok, cool thought so!
It did compile just didnt know if it was safe and correct
-Alex
so i can't delete the memory pointed to by say ptr and then allocate more memory using the same pointer (ptr)
Hi,
is it possible to deallocate memory, then use that same pointer after the delete statement
e.g
delete ptr;
ptr = 0;
Ok,
thought so.. Thanks for the confirmation though!
Cheers
-Alex
Hi,
Is it worth doing what ive done in the following code?
Is it worth checking that I have correctly set the value I wanted to set, or is this almost completely guaranteed and not worth the...
Ok,
Duh...i really should had thought about that before asking..
Thanks For Your Help Anyway!
Cheers
-Alex
so why would you not use the integer type?
Many Thanks
-Alex
Ok,
Thank you
Also quick question:
In some C code ive seen, when storing an array of values that make up an image (such as a tga or jpeg) they use a char type, why do they do that if the...