Jump to content

  • Log In with Google      Sign In   
  • Create Account

We need your help!

We need 1 more developer from Canada and 12 more from Australia to help us complete a research survey.

Support our site by taking a quick sponsored survey and win a chance at a $50 Amazon gift card. Click here to get started!


pabloreda

Member Since 26 Nov 2006
Offline Last Active Jun 08 2015 05:35 AM

#5229877 win32 cpu render bottleneck

Posted by pabloreda on 19 May 2015 - 12:29 PM

Xoxos:

 

I use cpu graphics poligons in my code, but is antialiased, you can see this in:

https://github.com/phreda4/r4MV/blob/master/r4wine/graf.cpp

 

the main optimization tricks are, use only integers and avoid division/multiplication.

 

I have a simple convex polygon filling without antialias for bitmask buffer, but not in C, is a forth like languaje

https://github.com/phreda4/reda4/blob/master/r4/Lib/mfbuffer.txt

lines 190 to 244

 

 

 

 




#5086755 subpixel-acurate triangle rasterization routine needed

Posted by pabloreda on 17 August 2013 - 06:44 AM

I use a routine of drawing anti-aliased polygons, the code here:
 
The antialias are doing by supersampling the raster lines, acumulate in a coverage buffer and finally render it.



#4975743 Experiment in representation of 3D objects

Posted by pabloreda on 02 September 2012 - 09:08 AM

Experiment in representation of 3D objects

Testing alternatives to the representation of 3D objects found a different way to vectors, points and voxels.
At first the idea seems too simple and restrictive, but let's see what happens.

The basic idea is to use 6 images, one for each side of the cube, and save these images point height.

The current implementation uses 3 256x256 images saved at each point (4 bytes), the minimum, maximum and there is room for two separate colors (palette).

The test did not make sense because the bitmap go to locate the points is what I'm trying to avoid but I wanted to see how it looks.
I lack the rasterization implement this structure or the intersection of a ray in order to draw solid.
I can calculate the normal using adjacent points although not sure that's a good idea.
The bitmaps are uncompressed, I want to finish the ray tracer first, maybe the search to locate the point on the screen resulting in any way to compress this point.

Any idea or help are welcome !!

all the source is open in my site.

Attached Thumbnails

  • dragonb3d.png

Attached Files




PARTNERS