Author Topic: Venom was right.. i was wrong - PCS now has Smooth Shading  (Read 9626 times)

0 Members and 1 Guest are viewing this topic.

Offline Bobboau

  • Just a MODern kinda guy
    Just MODerately cool
    And MODest too
  • 213
Venom was right.. i was wrong - PCS now has Smooth Shading
and while were nit picking all our opinions of PCS, I'd also like to have that anoying "are you sure you want load that model" mesage removed

------------------
Bobboau, bringing you products that work.............. in theory
Bobboau, bringing you products that work... in theory
learn to use PCS
creator of the ProXimus Procedural Texture and Effect Generator
My latest build of PCS2, get it while it's hot!
PCS 2.0.3


DEUTERONOMY 22:11
Thou shalt not wear a garment of diverse sorts, [as] of woollen and linen together

 

Offline Nico

  • Venom
    Parlez-vous Model Magician?
  • 212
Venom was right.. i was wrong - PCS now has Smooth Shading
 
Quote
Originally posted by Bobboau:
and while were nit picking all our opinions of PCS, I'd also like to have that anoying "are you sure you want load that model" mesage removed

yeah, I already asked for that   it asks it even at the start, when there's no pof loaded  

SCREW CANON!

 

Offline IceFire

  • GTVI Section 3
  • 212
    • http://www.3dap.com/hlp/hosted/ce
Venom was right.. i was wrong - PCS now has Smooth Shading
Looks great!

Venom: Very awesome planet models.  I also saw some new animations perhaps?
- IceFire
BlackWater Ops, Cold Element
"Burn the land, boil the sea, you can't take the sky from me..."

 

Offline Bobboau

  • Just a MODern kinda guy
    Just MODerately cool
    And MODest too
  • 213
Venom was right.. i was wrong - PCS now has Smooth Shading
ya, that's how the Sharlin is is suposed to look

might there be a pach for TBP

------------------
Bobboau, bringing you products that work.............. in theory
Bobboau, bringing you products that work... in theory
learn to use PCS
creator of the ProXimus Procedural Texture and Effect Generator
My latest build of PCS2, get it while it's hot!
PCS 2.0.3


DEUTERONOMY 22:11
Thou shalt not wear a garment of diverse sorts, [as] of woollen and linen together

 

Offline Nico

  • Venom
    Parlez-vous Model Magician?
  • 212
Venom was right.. i was wrong - PCS now has Smooth Shading
 
Quote
Originally posted by IceFire:
Looks great!

Venom: Very awesome planet models.  I also saw some new animations perhaps?

thanx, but the ring is awfull, to be honest. it needs a better map.
the new anim? yup, a plasma kind of explosion.

for the sharlin, I suppose they'll just have the new models in the next release, you can't come close enough to them to see if they have shading or not in the demo anyway  
SCREW CANON!

 
Venom was right.. i was wrong - PCS now has Smooth Shading
 
Quote
Originally posted by Kazan:
it'll be smooth shading or not

it creates it's own shading data because TS calculates it dynamically and doesn't save it to the file

I'd ask Gary about one.  Using his COB2FS2 utility the model retains the same smoothing data it had in TS so it must be in the *.COB file somewhere.

------------------
I told you that It would be done by November, well, mostly anyway...
I told you that It would be done by November, well, mostly anyway...

I'm working on something new... shhhhh, it's a seceret.

 

Offline Kazan

  • PCS2 Wizard
  • 212
  • Soul lives in the Mountains
    • http://alliance.sourceforge.net
Venom was right.. i was wrong - PCS now has Smooth Shading
 
Quote
Originally posted by venom2506:
for my part, i'd like PCS to save all the modification at the first time (it's not a big pb, just need to save several times, but wometimes, I just forget :รพ). I didn't have thios pb with the last build, but woomeister told me he had, so...


im going to *****slap what ever control's not saving it the first time!
PCS2 2.0.3 | POF CS2 wiki page | Important PCS2 Threads | PCS2 Mantis

"The Mountains are calling, and I must go" - John Muir

 

Offline Kazan

  • PCS2 Wizard
  • 212
  • Soul lives in the Mountains
    • http://alliance.sourceforge.net
Venom was right.. i was wrong - PCS now has Smooth Shading
 
Quote
Originally posted by jonskowitz:
I'd ask Gary about one.  Using his COB2FS2 utility the model retains the same smoothing data it had in TS so it must be in the *.COB file somewhere.



that's because you can calulate the smoothing according to what TS saves

generic part:
Code: [Select]
2 bytes short Material number
1 byte char Shader type   ('f'-flat, 'p'-phong, 'm'-metal)
1 byte char Facet type      ('f'-faceted, 'a'-autofacet, 's'-smooth)
1 byte char Autofacet angle   (0 - 179 degrees)
4 bytes float Red component of color   (0.0 - 1.0)
4 bytes float Green component of color   (0.0 - 1.0)
4 bytes float Blue component of color   (0.0 - 1.0)
4 bytes float Opacity   (0.0 - 1.0)
4 bytes float Ambient coefficient   (0.0 - 1.0)
4 bytes float Specular coefficient   (0.0 - 1.0)
4 bytes float Hilight size coefficient   (0.0 - 1.0)
4 bytes float Index of refraction
PCS2 2.0.3 | POF CS2 wiki page | Important PCS2 Threads | PCS2 Mantis

"The Mountains are calling, and I must go" - John Muir

 

Offline Bobboau

  • Just a MODern kinda guy
    Just MODerately cool
    And MODest too
  • 213
Venom was right.. i was wrong - PCS now has Smooth Shading
so is that how it's going to work when we next get to use it.

------------------
Bobboau, bringing you products that work.............. in theory
Bobboau, bringing you products that work... in theory
learn to use PCS
creator of the ProXimus Procedural Texture and Effect Generator
My latest build of PCS2, get it while it's hot!
PCS 2.0.3


DEUTERONOMY 22:11
Thou shalt not wear a garment of diverse sorts, [as] of woollen and linen together

 

Offline Kazan

  • PCS2 Wizard
  • 212
  • Soul lives in the Mountains
    • http://alliance.sourceforge.net
Venom was right.. i was wrong - PCS now has Smooth Shading
here's why normal calculation fails sometimes
 http://astronomy.swin.edu.au/pbourke/geometry/insidepoly/

it's more of them failing to serve their function due to special circumstances breaking the equasions
PCS2 2.0.3 | POF CS2 wiki page | Important PCS2 Threads | PCS2 Mantis

"The Mountains are calling, and I must go" - John Muir

 
Venom was right.. i was wrong - PCS now has Smooth Shading
I see, thx for pointing it out.  Dumb question but am I right in assuming that's how your newest build of your utility (the one supporting smooth shading) does it.
I told you that It would be done by November, well, mostly anyway...

I'm working on something new... shhhhh, it's a seceret.

 

Offline Kazan

  • PCS2 Wizard
  • 212
  • Soul lives in the Mountains
    • http://alliance.sourceforge.net
Venom was right.. i was wrong - PCS now has Smooth Shading
not yet.. im trying to find how out to calculate faceting from the angle
PCS2 2.0.3 | POF CS2 wiki page | Important PCS2 Threads | PCS2 Mantis

"The Mountains are calling, and I must go" - John Muir

 

Offline Kazan

  • PCS2 Wizard
  • 212
  • Soul lives in the Mountains
    • http://alliance.sourceforge.net
Venom was right.. i was wrong - PCS now has Smooth Shading
i think autofacet works via a sort of 'weighted average' between the actual point normal and the average normal

120 degree is full smoothing
0 degree is faceted


trying to think what kind of function would produce that

perhaps

N = point normal
AN = Average Point Normal
M = new point normal
F = AutoFacet Angle

M = unitvector((((120-F)/120)N + (F/120)AN)/2)



[This message has been edited by Kazan (edited 11-24-2001).]
PCS2 2.0.3 | POF CS2 wiki page | Important PCS2 Threads | PCS2 Mantis

"The Mountains are calling, and I must go" - John Muir

 

Offline Kazan

  • PCS2 Wizard
  • 212
  • Soul lives in the Mountains
    • http://alliance.sourceforge.net
Venom was right.. i was wrong - PCS now has Smooth Shading
it looks that as far as FS2 is concerned: you smooth it OR NOT
PCS2 2.0.3 | POF CS2 wiki page | Important PCS2 Threads | PCS2 Mantis

"The Mountains are calling, and I must go" - John Muir

 

Offline Setekh

  • Jar of Clay
  • 215
    • Hard Light Productions
Venom was right.. i was wrong - PCS now has Smooth Shading
Oooh, that smoothing is friggin' sweet  

As for FS2 smoothing/or not - I guess it's better than nothing...  
- Eddie Kent Woo, Setekh, Steak (of Steaks), AWACS. Seriously, just pick one.
HARD LIGHT PRODUCTIONS, now V3.0. Bringing Modders Together since January 2001.
THE HARD LIGHT ARRAY. Always makes you say wow.

 

Offline Bobboau

  • Just a MODern kinda guy
    Just MODerately cool
    And MODest too
  • 213
Venom was right.. i was wrong - PCS now has Smooth Shading
well just try to get it working so we can play with it.

------------------
Bobboau, bringing you products that work.............. in theory
Bobboau, bringing you products that work... in theory
learn to use PCS
creator of the ProXimus Procedural Texture and Effect Generator
My latest build of PCS2, get it while it's hot!
PCS 2.0.3


DEUTERONOMY 22:11
Thou shalt not wear a garment of diverse sorts, [as] of woollen and linen together

 
Venom was right.. i was wrong - PCS now has Smooth Shading
I know it can be done...
Heres a model in FS that was not smoothed...
   

...and here's one that was...
   

Both models exist in the same vp file and both pics are in-game (tech room shots).

I was thinking, it might help to look at ModelView32's source code and see if there's something in there that might help.  I think it's available at the descent developer's network site.

[This message has been edited by jonskowitz (edited 11-24-2001).]
I told you that It would be done by November, well, mostly anyway...

I'm working on something new... shhhhh, it's a seceret.

 

Offline Kazan

  • PCS2 Wizard
  • 212
  • Soul lives in the Mountains
    • http://alliance.sourceforge.net
Venom was right.. i was wrong - PCS now has Smooth Shading
no model view's source is closed
PCS2 2.0.3 | POF CS2 wiki page | Important PCS2 Threads | PCS2 Mantis

"The Mountains are calling, and I must go" - John Muir

 

Offline Setekh

  • Jar of Clay
  • 215
    • Hard Light Productions
Venom was right.. i was wrong - PCS now has Smooth Shading
 
Quote
Originally posted by jonskowitz:
I know it can be done...
Heres a model in FS that was not smoothed...
     

...and here's one that was...
     

Both models exist in the same vp file and both pics are in-game (tech room shots).

I was thinking, it might help to look at ModelView32's source code and see if there's something in there that might help.  I think it's available at the descent developer's network site.

[This message has been edited by jonskowitz (edited 11-24-2001).]

Oh... damn...    
- Eddie Kent Woo, Setekh, Steak (of Steaks), AWACS. Seriously, just pick one.
HARD LIGHT PRODUCTIONS, now V3.0. Bringing Modders Together since January 2001.
THE HARD LIGHT ARRAY. Always makes you say wow.

 
Venom was right.. i was wrong - PCS now has Smooth Shading
I (obviously) don't know much about this stuff, but I went' through Knudd's COB2FS source code until I found something that looked relavent.  Hope this helps you out...

Code: [Select]
void calcNormal(float v[3][3], float out[3])
   {
   double v1[3],v2[3];
   static const int x = 0;
   static const int y = 1;
   static const int z = 2;

   v1[x] = v[0][x] - v[1][x];
v1[y] = v[0][y] - v[1][y];
   v1[z] = v[0][z] - v[1][z];

   v2[x] = v[1][x] - v[2][x];
   v2[y] = v[1][y] - v[2][y];
v2[z] = v[1][z] - v[2][z];

   out[x] = v1[y]*v2[z] - v1[z]*v2[y];
out[y] = v1[z]*v2[x] - v1[x]*v2[z];
out[z] = v1[x]*v2[y] - v1[y]*v2[x];

   ReduceToUnit(out);
   }
I told you that It would be done by November, well, mostly anyway...

I'm working on something new... shhhhh, it's a seceret.