News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

this would be nice to develop to 3d floormapping

Started by daydreamer, May 09, 2013, 03:59:28 AM

Previous topic - Next topic

dedndave

i don't know what you mean by turning it off and on
the linear interpolation i am refering to is in the original image   :P
re: reply #26

FORTRANS

Hi,

   I had the "smooth" option on.  Otherwise it plots the height
field as little boxes.  Nice sharp edges all about.  Crystalline?

Regards,

Steve N.

qWord

#32
hi,
I've spend some hours because I find this very interesting.
For reconstructing the surface I've used a very simple approach, which creates triangles between the pixels (memory expensive because we need 6 vectors per pixel). For the height, the RGB values are transform to HSV and the normalized hue-value is used. The mouse control (virtual trackball) isn't perfect but it somehow works. Zooming is possible using the mouse wheel. Also the height-scaling can be changed (see buttons).
I'm curios if the attach program run on other machines, because I'm afraid the code makes some assumptions that are only true for my laptop (currently).

qWord

BTW: the attachment is an WinRAR archive and not ZIP (because of the size).
BTW2: do not assume to be able to build the source. It requires SmplMath+JWASM+WinInc+libs (e.g. from Windows SDK / DirectX SDK)

EDIT: new attachment
MREAL macros - when you need floating point arithmetic while assembling!

jj2007

Both executables won't run unless you have installed d3dx9_42.dll (which I haven't :()

qWord

You maybe try to install the latest DirectX version: http://www.microsoft.com/en-us/download/details.aspx?id=35
MREAL macros - when you need floating point arithmetic while assembling!

jj2007

48MB is a bit too much for my harddisk, sorry...

dedndave

i installed it - wanted it, anyways
eventually, i would like to be able to code this without it, though   :P
nothing wrong with setting goals - lol

daydreamer

my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding

dedndave

it runs, but i am not sure if i am seeing what was intended   :redface:

FORTRANS

Hi,

   Tweaked a few things.  Turned off the smoothing and shininess.
Played a bit with the color.  Killed the background checkerboard
The changes should show a bit of the features of a height field.

Cheers,

Steve N.

dedndave


qWord

#41
There were several issues in my code - I've upload a new version in my previous post.
Quote from: dedndave on May 19, 2013, 11:19:46 PM
it runs, but i am not sure if i am seeing what was intended   :redface:
you should see something like this:
MREAL macros - when you need floating point arithmetic while assembling!

dedndave

it's very nice - i like the rotation stuff   :t
but, i only seem to be seeing part of the image
this is about as much as i can see by adjustment



i am running XP if that makes a difference

qWord

#43
hi,
what I did not do is to check the maximal number of primitives that can be drawn - maybe that limit is reach fro your machine (Also, as said above, my approach is memory expensive and needs 96 bytes per pixel). You can try to reduce the image width/height and see if there is an difference.

qWord

EDIT: new version attached in above post
MREAL macros - when you need floating point arithmetic while assembling!

dedndave

the newer images are 256-color bmp's
it would probably be easier to use a section of one of those