Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by 7th_zorro. 04/27/24 04:42
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (Quad), 773 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 4 1 2 3 4
Re: open the WMB format [Re: ChrisB] #257481
03/23/09 14:40
03/23/09 14:40
Joined: Feb 2007
Posts: 353
A
amy Offline OP
Senior Member
amy  Offline OP
Senior Member
A

Joined: Feb 2007
Posts: 353
Quote:
long path; // attached path index
long entity2; // attached entity index


What about the indices here? Do they start at 0 and what if nothing is attached?



I also have a question about smoothing. Do vertices which are at the same position get welded for gouraud shading? What about the UV-borders? How do you determine the normals? I think the smoothing flag is too inflexible and not enough. Smoothing groups or something like that would be needed. This whole smoothing thing really is a big weakness of Gamestudio.

Re: open the WMB format [Re: amy] #257502
03/23/09 15:52
03/23/09 15:52
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
I've added the answers to the description.

- Vertices don't get welded by themselves. It's up to the level designer to weld them. Gouraud shading is only active for blocks with Smooth flag, and only from version 7.74 on that's currently in beta. When you think the Smooth flag is not enough, just share with us your idea of how else smoothing should work.

Re: open the WMB format [Re: jcl] #257504
03/23/09 16:07
03/23/09 16:07
Joined: Feb 2007
Posts: 353
A
amy Offline OP
Senior Member
amy  Offline OP
Senior Member
A

Joined: Feb 2007
Posts: 353
/\
||
\/

Letīs say you have a shape like this (top view and every character is a polygon) and want hard edges at the tips but smooth shading on the sides. Thatīs not possible with the smooth flag. (This is just one example. I could list more issues.)

With smoothing groups it would be possible. Put the left side into smoothing group 1 and the right side into smoothing group 2. At the borders of the smoothing groups there will be hard edges. Thatīs how smoothing groups work in 3dsmax.

Actually smoothing groups arenīt that nice to work with though. I prefer how it works in Maya where you can set smoothing information directly on the edges. But there is no edge struct in the WMB format so probably it would be simplest to include normals with the vertices. Then the exporter could handle smoothing correctly. The smooth flag would be obsolete then.

Re: open the WMB format [Re: amy] #257507
03/23/09 16:45
03/23/09 16:45
Joined: May 2002
Posts: 7,441
ventilator Offline
Senior Expert
ventilator  Offline
Senior Expert

Joined: May 2002
Posts: 7,441
yes, please ignore the smooth flag in WMB and add normals to the vertex struct instead. this would solve the problem.

WED can still use the smooth flag (but better implement something more sophisticated) and the map compiler is responsible for calculating the mesh and its normals.

Re: open the WMB format [Re: ventilator] #257631
03/24/09 13:04
03/24/09 13:04
Joined: Feb 2007
Posts: 353
A
amy Offline OP
Senior Member
amy  Offline OP
Senior Member
A

Joined: Feb 2007
Posts: 353
jcl, what do you think about adding the normal to the vertex struct?

Re: open the WMB format [Re: amy] #258147
03/27/09 23:18
03/27/09 23:18
Joined: Feb 2009
Posts: 25
Mexico City
DavidOC Offline
Newbie
DavidOC  Offline
Newbie

Joined: Feb 2009
Posts: 25
Mexico City
I'm having problems to display the lightmap. This is the result so far, probably it's the materials list, I'm not including one, or maybe it's the UV coordinates. Any idea will be appreciated.

Best Regards.

Re: open the WMB format [Re: DavidOC] #258159
03/28/09 02:00
03/28/09 02:00
Joined: May 2002
Posts: 7,441
ventilator Offline
Senior Expert
ventilator  Offline
Senior Expert

Joined: May 2002
Posts: 7,441
what application do you write your exporter for? just curious...

i didn't really start to work with the wmb7 format yet but maybe at least mat_shaded or mat_flat have to be added to the material list and then used correctly by your geometry?

Re: open the WMB format [Re: ventilator] #258307
03/29/09 16:14
03/29/09 16:14
Joined: Feb 2009
Posts: 25
Mexico City
DavidOC Offline
Newbie
DavidOC  Offline
Newbie

Joined: Feb 2009
Posts: 25
Mexico City
Thanks, I think mat_flat would work, I'll check with this.

Right now I'm focused in Cartography Shop 4.1 (old but I bought a license when started with Dark Basic Pro), after finishing it I'll look for a free editor, I already have a program to load and convert to a MDL the Gile[s] output (DirectX exporter), so my first option is integrating both.

Re: open the WMB format [Re: DavidOC] #258890
04/02/09 18:11
04/02/09 18:11
Joined: Feb 2009
Posts: 25
Mexico City
DavidOC Offline
Newbie
DavidOC  Offline
Newbie

Joined: Feb 2009
Posts: 25
Mexico City
The problem was negative UV data, I need to normalize it. Now I'm trying to include terrains, but they are not described in the objects section (maybe type=3?).

So far I have this sample, I tested it with the 18 Lite-C workshop code and runs fine.

Regards

Re: open the WMB format [Re: DavidOC] #259448
04/06/09 07:23
04/06/09 07:23
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Terrains are normal entities, type=7.

Page 2 of 4 1 2 3 4

Moderated by  aztec, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1