0 Members and 3 Guests are viewing this topic.
Played a bit with my raycasting function and I am now able to add cubes !I am proud to show you the very first dirt house in the history of nCraft (see attached screenie)Unfortunately, this helped me dicovering a graphical glitch : sometimes, a cube doesn't seem to be sorted properly.Not very annoying, but I still have to repair this.I hope I will fix it soon...
im tired of no download can you release this even with the bug?
^indeed! Patience isn't what most of us have
Annoyingcalc, I can see you are fairly obsessed... With your avatar and all.... LOL
I have a question of my own, how exactly are you 'sorting' the cubes to draw? Are you actually putting their distances in a list and sorting them?
Also, I thought about something that may be a faster way to draw the cubes but I am not sure if that will work so I first need to know some things:-can you draw arbitrary sizes of sprites with Ndless C ?-can those sprites support transparency ?
Quote from: annoyingcalc on September 26, 2012, 08:58:02 pmim tired of no download can you release this even with the bug?Quote from: blfngl on September 26, 2012, 09:29:18 pm^indeed! Patience isn't what most of us have I agree with them, the bug is only a displaying bug, not an irrevocable crash so a demo of this with the bug would already be awesome.
Quote from: Hayleia on September 27, 2012, 01:10:32 amAlso, I thought about something that may be a faster way to draw the cubes but I am not sure if that will work so I first need to know some things:-can you draw arbitrary sizes of sprites with Ndless C ?-can those sprites support transparency ?I don't think that ndless does that, but it's quite easy to code.Why ?
Ok, ok, here is the current version (I also can post the source code, if you want)
Isometric 3D would look extremely weird and is not at all suitable for first person games.
Quote from: Chockosta on September 27, 2012, 11:39:15 amQuote from: Hayleia on September 27, 2012, 01:10:32 amAlso, I thought about something that may be a faster way to draw the cubes but I am not sure if that will work so I first need to know some things:-can you draw arbitrary sizes of sprites with Ndless C ?-can those sprites support transparency ?I don't think that ndless does that, but it's quite easy to code.Why ?Well I thought about a 3d drawing method that could speed up the game, but I am not really sure.Basically, it is based on the isometric 3d idea.In isometric 3d, all the cubes are the same, so you only need to draw one in 3d, then use the image of this cube as a masked sprite to draw all the other ones.In non isometric 3d, one cube is not enough since not all the cubes are seen from the same angle, but one cube per line is enough. If you have n aligned cubes you draw one of them using your current 3d engine, then use the image of this cube as a masked sprite to draw the other ones, using some sprite scaling.So basically, if you have n lines of m cubes each, you don't need to draw n*m cubes in 3d but only n cubes and n*m sprites.Do you get what I mean (or is my English really bad ) ?
The source code would be interesting