Allegro.cc - Online Community

Allegro.cc Forums » Off-Topic Ordeals » 3D Model Hack!! :D

This thread is locked; no one can reply to it. rss feed Print
 1   2 
3D Model Hack!! :D
Chris Katko
Member #1,881
January 2002
avatar

Neat!

I've been using Open Broadcaster Software. It's FOSS, and let's you do all kinds of complex broadcasting and/or video capture. Best of all: It uses the GPU so even my 7 year old PC can run it at 1080p.

-----sig:
“Programs should be written for people to read, and only incidentally for machines to execute.” - Structure and Interpretation of Computer Programs
"Political Correctness is fascism disguised as manners" --George Carlin

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

This is a fully textured model I made in SketchUp. The program is amazingly simple to use, and quite easy to grasp and model with. Much much easier than blender is to use.

This model is of one of the dorm towers on campus where I go to school. It took me probably about 16 hours total to fully model and texture everything, including transparent windows. However I don't know how to load an .obj file right in my model viewer program. The textures came out with all the wrong UV values for some reason.

{"name":"610108","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/8\/2\/825dd7f23fbcc07e9f78f2c9cee107ab.png","w":1920,"h":1080,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/8\/2\/825dd7f23fbcc07e9f78f2c9cee107ab"}610108

7z archive of .skp, .obj, and .mat files, and the materials folder

No, I didn't make this for model hack, but I am proud of my model so I'm posting it anyway. :P

Mark Oates
Member #1,146
March 2001
avatar

Yea, sketchup is super easy. I was going to also suggest using it, but I didn't think you could make textured models with it. TIL. :)

However I don't know how to load an .obj file right in my model viewer program.

What part are you having trouble with?

More tutorials Mark! :) I like the concept of short, to the point, teaching only one thing kind of tutorials.

Yea no problem. I'm trying to think of a way to get more people in - maybe gamify the tutorials in some way or make like a reward system. You could gain achievements "Made a 3D model", "Loaded an obj file in Allegro", "Wrote a lighting shader", "Used a skybox", "Wrote a metalic shader", are a few that I want to do. :) Like SpeedHack but like SpeedHackClass or something.

No, I didn't make this for model hack, but I am proud of my model so I'm posting it anyway. :P

Cool!

--
Visit CLUBCATT.com for cat shirts, cat mugs, puzzles, art and more <-- coupon code ALLEGRO4LIFE at checkout and get $3 off any order of 3 or more items!

AllegroFlareAllegroFlare DocsAllegroFlare GitHub

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

What part are you having trouble with?

Maybe it's not my loader that's screwed up, because it is just simple text parsing, but the UV values come out all screwy in the .obj file when I export it from SketchUp. As long as the texture is not repeated, shouldn't the values all be from around 0.0 to 1.0, give or take a little for positioning? Look at some of these texture values in the model's .obj file :


usemtl LeftWindowWide2
vt -3.00201 6.99867
vn 0 0 -1
v 1.74051 13.45 -3.63
vt -1.99941 7.99941
vt -3.00201 7.99941
f 17/33/9 19/34/9 18/35/9

v 1.74051 11.7688 -3.63
vt -1.99941 6.99867
f 19/34/9 17/33/9 20/36/9

The UV vertices are -3,7 , -2,8 , -3,8 , and -2,7 or so, which all seem to make sense for texel width and height, but not position.

This is what the textures look like when I try to display them in my model viewer program :
{"name":"610110","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/1\/d\/1d9fd702dce1582cc4a1b4f8cd124f24.png","w":908,"h":915,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/1\/d\/1d9fd702dce1582cc4a1b4f8cd124f24"}610110

And this is what they look like with textures off (So you can see the faces) :
{"name":"610111","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/e\/9\/e982f97c09eaa06a59bc2fbcfe8e18b7.png","w":908,"h":915,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/e\/9\/e982f97c09eaa06a59bc2fbcfe8e18b7"}610111

Here's SketchUp and my Model Viewer shown side by side on the same sides of the building :
{"name":"610112","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/5\/6\/5637f3c84fc340888a031d26dbf31bb8.png","w":1920,"h":1080,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/5\/6\/5637f3c84fc340888a031d26dbf31bb8"}610112
{"name":"610113","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/3\/0\/30df6d177dffbfced84d2b4da61e84e1.png","w":1920,"h":1080,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/3\/0\/30df6d177dffbfced84d2b4da61e84e1"}610113

Here's SketchUp and the resulting object file imported by blender from the same view :
{"name":"610114","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/3\/5\/35d117e90135d94a23b6a9082b42b7ab.png","w":1920,"h":1080,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/3\/5\/35d117e90135d94a23b6a9082b42b7ab"}610114

Apparently I can't export an .obj file anymore because my free trial of SketchUp Pro expired. Now I can only export collada or google map files. :P

Blender can import collada files, but how do I show textures in Blender?

Blender is so damn complicated. :P

Neil Roy
Member #2,229
April 2002
avatar

Blender is so damn complicated.

Here, watch this, I found it very helpful in getting used to using Blender...
(called "Blender for noobs")

video

---
“I love you too.” - last words of Wanda Roy

 1   2 


Go to: