Author Topic: image2object creator - Pure GLBasic  (Read 4029 times)

Offline Hemlos

  • To boldy go where no pixel has gone before!
  • Global Moderator
  • Prof. Inline
  • *******
  • Posts: 1635
  • Particle Hawk
    • View Profile
image2object creator - Pure GLBasic
« on: 2008-Oct-16 »
Quote
UPDATED: Download is compatible with V10 now. -Hemlos July 3,2012

Heres a freeware program to make objects from images, source included.

Tips and tricks:
In settings: depth 0 for using objects to cast shadows.
In settings: Set normals to 2 for best 3d rendering results(use an x_spotlight)
Using small square images to make an object...if you use a large image, the object will too big of filesize.
Keep images around 64x64 or 128x128.
Be careful when you use 128x128..too many colors will create giant filesizes...
...the less number of black pixels, the smaller the filesize it will be.
World Point of insertion  x/2 y/2 of the image.

To make a colored object:
Draw an image with color 64x64, leave the background black.
A colored one will set the colors into the object vertice map, and you wont need a texture.
I think the colored style may be used for object bumpmapping and cellshading. Test it.
Make sure to set textured=0 to view it without a texture, so you can see the vertice colors.

Non colored object:
Draw image using White pixels, this will make the object white.
Black pixels in the image will not be draw into an object.
This style is good if you want to spheremap it.
If you want to see a texture added to this object, set textured=1

-Hemlos

PS. Theres no 3rd party software, no driver.dlls, and no inlines to fuss with, its all easy 123 Pure GLBasic.

[attachment deleted by admin]
« Last Edit: 2012-Jul-03 by Hemlos »
Volume_of_Earth(km^3) = 4/3*3.14*POW(6371.392896,3)

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10739
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: image2object creator - Pure GLBasic
« Reply #1 on: 2008-Oct-16 »
awesome work!

Offline Quentin

  • Prof. Inline
  • *****
  • Posts: 915
    • View Profile
Re: image2object creator - Pure GLBasic
« Reply #2 on: 2008-Oct-16 »
Wow!
Looks great!

Offline Hemlos

  • To boldy go where no pixel has gone before!
  • Global Moderator
  • Prof. Inline
  • *******
  • Posts: 1635
  • Particle Hawk
    • View Profile
Re: image2object creator - Pure GLBasic
« Reply #3 on: 2009-Jan-12 »
With GLBasic V6, it now looks better than ever!
GLBasic now builds very very accurate objects.


Volume_of_Earth(km^3) = 4/3*3.14*POW(6371.392896,3)

Offline Hemlos

  • To boldy go where no pixel has gone before!
  • Global Moderator
  • Prof. Inline
  • *******
  • Posts: 1635
  • Particle Hawk
    • View Profile
Re: image2object creator - Pure GLBasic
« Reply #4 on: 2012-Jul-03 »
Image2object is now V10 capable.

I updated the download to run using GLBasic V10, without changing anything.
Volume_of_Earth(km^3) = 4/3*3.14*POW(6371.392896,3)