Search:

Type: Posts; User: appleGuy

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    8
    Views
    1,787

    OK, I will explain what i am trying to do... I...

    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...
  2. Replies
    8
    Views
    1,787

    Its not the literal displayed values... ill try...

    Its not the literal displayed values... ill try to give an example


    -1.0 = 255, 255, 255

    -0.x = ???, ???, ???

    0.0 = 0, 0, 0
  3. Replies
    8
    Views
    1,787

    Float To 3 unsigned chars

    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....
  4. Replies
    0
    Views
    2,160

    Plugin System Architecture

    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
    ...
  5. Replies
    12
    Views
    18,059

    Null Not Defined

    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
  6. Replies
    7
    Views
    11,106

    So in connect 4, each node including the root is...

    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....
  7. Replies
    7
    Views
    11,106

    Hi, So for simplicity its a computer vs human...

    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...
  8. Replies
    7
    Views
    11,106

    Connect 4 Minimax

    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...
  9. Replies
    11
    Views
    15,575

    Ok i only got the ray casting idea from a voxel...

    Ok i only got the ray casting idea from a voxel terrain tutorial. Could you please explain further the proper technique?

    Thanks
    -Alex
  10. Replies
    11
    Views
    15,575

    Yeah, Had a look through it. Not really what I...

    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...
  11. Replies
    11
    Views
    15,575

    No. There is a view Plane (The eventual image...

    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...
  12. Replies
    11
    Views
    15,575

    Yes, something like that. However, that takes...

    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...
  13. Replies
    11
    Views
    15,575

    Voxel Rendering (Beginner)

    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...
  14. Replies
    6
    Views
    1,312

    Ok thanks! -Alex

    Ok thanks!

    -Alex
  15. Replies
    6
    Views
    1,312

    Class Or Struct?

    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
  16. Replies
    4
    Views
    3,896

    I KNOW... its just practice, breaking down a...

    I KNOW...

    its just practice, breaking down a problem into smaller problems and using those to answer to larger problem.
  17. Replies
    4
    Views
    3,896

    Recursion Practice

    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...
  18. Replies
    9
    Views
    3,170

    ok, cool thought so! It did compile just didnt...

    ok, cool thought so!

    It did compile just didnt know if it was safe and correct

    -Alex
  19. Replies
    9
    Views
    3,170

    so i can't delete the memory pointed to by say...

    so i can't delete the memory pointed to by say ptr and then allocate more memory using the same pointer (ptr)
  20. Replies
    9
    Views
    3,170

    Deallocate Memory and reuse pointer

    Hi,

    is it possible to deallocate memory, then use that same pointer after the delete statement

    e.g


    delete ptr;
    ptr = 0;
  21. Replies
    2
    Views
    945

    Ok, thought so.. Thanks for the confirmation...

    Ok,

    thought so.. Thanks for the confirmation though!

    Cheers
    -Alex
  22. Replies
    2
    Views
    945

    Mutator function Question

    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...
  23. Replies
    7
    Views
    2,181

    Ok, Duh...i really should had thought about...

    Ok,

    Duh...i really should had thought about that before asking..


    Thanks For Your Help Anyway!

    Cheers
    -Alex
  24. Replies
    7
    Views
    2,181

    so why would you not use the integer type? ...

    so why would you not use the integer type?

    Many Thanks
    -Alex
  25. Replies
    7
    Views
    2,181

    Ok, Thank you Also quick question: In...

    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...
Results 1 to 25 of 45
Page 1 of 2 1 2