OW Models

To, co nie pasuje do pozostałych kategorii, ma swoje miejsce tutaj.
User avatar
stucuk
OWSupport.com Owner
Posts: 438
Joined: Tue Apr 18, 2006 12:10 am
Location: UK, Scotland

OW Models

Post by stucuk »

Has anyone made any models which are similar to the original ones in OW and which can be saved correctly to the obj format?

I would like to try and make an obj to gm feature but i don't have the skills to make a 3D model which looks like an original war one.

Note: The reason why an original war one is needed is so that it could be calibrated to produce a similar result to the originals.
- Stu
OWSupport
User avatar
Szymiew
Soldier level 7
Soldier level 7
Poland
Posts: 713
Joined: Thu Aug 16, 2012 11:11 am
Location: Królestwo Polskie
Contact:

Re: OW Models

Post by Szymiew »

I have this crap from my video project. Will it suffice? Unfortunately I don't have time to texture this, or make it better. They were made in Blender but i think it has export to obj option.

http://imgur.com/a/AMljF
https://www.youtube.com/kvantovy --- mój kanał youtube.
https://www.facebook.com/Kvantovy --- strona u cukierberga.
Image
User avatar
stucuk
OWSupport.com Owner
Posts: 438
Joined: Tue Apr 18, 2006 12:10 am
Location: UK, Scotland

Re: OW Models

Post by stucuk »

Sali provided a model of a Depot:
Image

Perspective isn't 100% perfect. The Gray is the "True" zbuffer (1-127 value in grayscale).

Gelwe sent one of your vehicles in obj format (I don't have blender). Though it had no normals and the code im using to make normals seems to suck:
Image
- Stu
OWSupport
MasterKiller
Soldier level 6
Soldier level 6
Posts: 343
Joined: Tue Aug 09, 2011 5:51 pm

Re: OW Models

Post by MasterKiller »

It's a bit off-topic, but close to models thing - can you add, stucuk, in that function:

Code: Select all

SetMark(units:plist, mark:integer);
third parameter, which one would be a name of .gms file in some new folder (e.g. Effects\Marks) and then you could add different marks to vehicles, changing its look for some way. Backero in his Magnetic Bulldozer:

https://forum.original-war.net/viewtopi ... &start=225

used SetMark for adding something like recoloured solar panels, when weapon is ready to use, and now he cannot use function for other mark. I hope you understood my idea :D
Wszyscy jesteśmy żołnierzami: WYDANE
https://original-war.net/files.php?id=174
User avatar
stucuk
OWSupport.com Owner
Posts: 438
Joined: Tue Apr 18, 2006 12:10 am
Location: UK, Scotland

Re: OW Models

Post by stucuk »

@MasterKiller: Completely off topic. Has nothing to do with anything in this topic. If you want stuff implemented add it to the BUG TRACKER. Don't hijack threads.
- Stu
OWSupport
User avatar
stucuk
OWSupport.com Owner
Posts: 438
Joined: Tue Apr 18, 2006 12:10 am
Location: UK, Scotland

Re: OW Models

Post by stucuk »

Current UNFINISHED source code is attached to this post.
Attachments
OBJToGM_SOURCE_2015-12-22.rar
(427.12 KiB) Downloaded 107 times
- Stu
OWSupport
User avatar
stucuk
OWSupport.com Owner
Posts: 438
Joined: Tue Apr 18, 2006 12:10 am
Location: UK, Scotland

Re: OW Models

Post by stucuk »

Does anyone actually have Delphi? The Source code i posted is a bit of a mess since its just a test application. It is lacking code to export the images it creates into an intermediate format which GM Editor would then import. The OBJ loading code is old so its badly coded but it does work and with modifications i made works on large OBJ's.
- Stu
OWSupport
User avatar
Serpent
Soldier level 10
Soldier level 10
Estonia
Posts: 4175
Joined: Tue Jul 07, 2009 9:13 pm
Location: Polska - EuroStan ZSRE
Contact:

Re: OW Models

Post by Serpent »

Im using Delphi 7 but i don't have any .obj file for test.
Epickie teksty:
Marek1906: jak zrobic aby sail był zielony?
Kvantovy: Wszystko normalne, wszystko w koło było dziwne
Kvantovy:: To jest fajne, że to nie jest takie głupie
Kvantovy:: remove sos from kanapeczka
Kvantovy:: zdarzają się rzezy które sie filozofom nie śniły
Cenwen: problemem jest gejostwo
"Taki z niego fizyk jak ze mnie baletnica" - Profesor Scholtze o Kvantovym.
JAKBYŁ BYM CZECHEM TO BYM ROZŁOŻYŁ NAMIOT ~Kvanciak
User avatar
stucuk
OWSupport.com Owner
Posts: 438
Joined: Tue Apr 18, 2006 12:10 am
Location: UK, Scotland

Re: OW Models

Post by stucuk »

Serpent wrote:Im using Delphi 7 but i don't have any .obj file for test.
http://www.turbosquid.com/Search/3D-Models/free/obj

(You can find various websites online)
- Stu
OWSupport
User avatar
stucuk
OWSupport.com Owner
Posts: 438
Joined: Tue Apr 18, 2006 12:10 am
Location: UK, Scotland

Re: OW Models

Post by stucuk »

Slightly updated with ability to load obj's easier. Also has shaders that are more compatible (It now runs on crap Intel CPU's which have a built in graphics core).
Attachments
OBJToGM_SOURCE_2015-12-25.rar
(430.24 KiB) Downloaded 89 times
- Stu
OWSupport
User avatar
stucuk
OWSupport.com Owner
Posts: 438
Joined: Tue Apr 18, 2006 12:10 am
Location: UK, Scotland

Re: OW Models

Post by stucuk »

Image
- Stu
OWSupport
User avatar
stucuk
OWSupport.com Owner
Posts: 438
Joined: Tue Apr 18, 2006 12:10 am
Location: UK, Scotland

Re: OW Models

Post by stucuk »

Image
- Stu
OWSupport
User avatar
Szymiew
Soldier level 7
Soldier level 7
Poland
Posts: 713
Joined: Thu Aug 16, 2012 11:11 am
Location: Królestwo Polskie
Contact:

Re: OW Models

Post by Szymiew »

Fiat and Skoda Adventures confirmed!
https://www.youtube.com/kvantovy --- mój kanał youtube.
https://www.facebook.com/Kvantovy --- strona u cukierberga.
Image
User avatar
Creative
Blackmen level 100
Blackmen level 100
Poland
Posts: 1246
Joined: Tue Jan 27, 2009 4:07 pm

Re: OW Models

Post by Creative »

stucuk wrote:Image
Haha very Nice :)
Image
User avatar
stucuk
OWSupport.com Owner
Posts: 438
Joined: Tue Apr 18, 2006 12:10 am
Location: UK, Scotland

Re: OW Models

Post by stucuk »

- OBJToGM_2016_10_24.rar

Image Image

Left Image shows the bit where you preview the model and get the scale (S: bit being current scale). The box with the value 23 is where you can enter a maxz value (Allowing you to preview the obj with that maxz) and you can have it scale the model based on that maxz (Scale may not be 100% accurate. Depends on the scale you created your OBJ with). Right image is where you generate the 2P5D files which can be imported into the latest GM Edit (Included in the download above).

Basically you need to create a .settings file in the same directory as your OBJ file(s). Which contents are like the following:

Code: Select all

angle 0 59
angle 1 0
angle 2 296
angle 3 239
angle 4 180
angle 5 116
frame 1 %model%-1.obj
frame 2 %model%-2.obj
frame 3 %model%-3.obj
frame 4 %model%-4.obj
frame 5 %model%-5.obj
frame 6 %model%-5.obj
frame 7 %model%-6.obj
frame 8 %model%-6.obj
frame 9 %model%-7.obj
scale 0.9966
zmax 56
%model% is replaced with the settings file's name(minus the extension).

Note: Models need to be placed under the directory you place OBJToGM or they will not show up on its list. Also note that for Side Colours to work you need to use side as the material name for any part of the object which should have Side Colours. The system does support images for materials but only JPG and BMP.

P.S: Currently it can't be used to generate vehicle parts due to how they are split up into single models for each part.

-----------------------------

EDIT: 2P5D Format: 2P5D.txt
- Stu
OWSupport
Post Reply