Author Topic: Shadow maping in 4k under linux. [ now with binaries ]  (Read 24107 times)

0 Members and 1 Guest are viewing this topic.

Offline mind

  • Texture-San
  • DBF Aficionado
  • ******
  • Posts: 2324
  • Karma: 85
    • View Profile
    • boredom is a beatiful thing.
Re: Shadow maping in 4k under linux. [ now with binaries ]
« Reply #40 on: December 04, 2007 »
one way to reduce size is to remove the terrain equation completely and use one of my routines instead :P

anyways, nice work indeed..
Challenge Trophies Won:

Offline frea

  • C= 64
  • **
  • Posts: 61
  • Karma: 2
    • View Profile
Re: Shadow maping in 4k under linux. [ now with binaries ]
« Reply #41 on: December 04, 2007 »
um? which ones?
Nananan.

Offline mind

  • Texture-San
  • DBF Aficionado
  • ******
  • Posts: 2324
  • Karma: 85
    • View Profile
    • boredom is a beatiful thing.
Re: Shadow maping in 4k under linux. [ now with binaries ]
« Reply #42 on: December 04, 2007 »
oh i have a ton of them.. ^^ how big is yours before compression?

and since i hear you speaking of parabolas i assume you generate your terrain with a method similar to this one: http://www.robot-frog.com/3d/hills/index.html

so, since they can be generated in both 2d and 3d quite easily, which method do you use? are you working on a 2d hightmap and converting to 3d, or are you simply generating triangles directly?

if you use the latter approach you are probably better off as you are, since i have absolutely no clue how to generate real 3d terrain, most of my work is in the procedural 2d department :)
Challenge Trophies Won:

Offline taj

  • Bytes hurt
  • DBF Aficionado
  • ******
  • Posts: 4810
  • Karma: 189
  • Scene there, done that.
    • View Profile
Re: Shadow maping in 4k under linux. [ now with binaries ]
« Reply #43 on: December 04, 2007 »
um? which ones?

If you are prepared to use any algorithm, I reckon you could get this smaller, Minds right.
For example, you could use my old "perlin noise" hack to create a terrain...code is here:
http://in4k.untergrund.net/index.php?title=Aulds_Noise_Algorithms
I'm not 100% sure it will be smaller, lots of OGL calls you arent using already, but on the plus side, no maths - it would be under crinkler but you dont have that luxury.

I have an (as yet :-) unpublished cheat for this to make it even smaller. You dont create the random array (avoiding all random number code) but simply use a pointer to memory as input to the texture algorithm. I used this in Spheres dream and it works ok once you find a good pointer (try a pointer to the terrain function itself).

Lastly I know there is a way to write Mid point displacement which is smaller than the circle or my algorithm. Unfortunately a quick look on the web doesnt turn it up and I lost all my graphics books when I moved countries :-(. MPD is (or can be) entirely integer so it can be quite small.

This all said, I like the way yours looks _very_ much. It looks better than midpoint in my opinion.

Taj


Challenge Trophies Won:

Offline taj

  • Bytes hurt
  • DBF Aficionado
  • ******
  • Posts: 4810
  • Karma: 189
  • Scene there, done that.
    • View Profile
Re: Shadow maping in 4k under linux. [ now with binaries ]
« Reply #44 on: December 04, 2007 »
Nvidia guys (and anyone else failing with older exes),

can you try to run the attached exe and tell me what errors are reported? This should help us to nail down whats up.

Thanks in advance.

Taj
Challenge Trophies Won:

Offline Rbz

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 2757
  • Karma: 493
    • View Profile
    • https://www.rbraz.com/
Re: Shadow maping in 4k under linux. [ now with binaries ]
« Reply #45 on: December 05, 2007 »
I'm Nvidia guy :P

I got this error messages:
Challenge Trophies Won:

Offline mind

  • Texture-San
  • DBF Aficionado
  • ******
  • Posts: 2324
  • Karma: 85
    • View Profile
    • boredom is a beatiful thing.
Re: Shadow maping in 4k under linux. [ now with binaries ]
« Reply #46 on: December 05, 2007 »
tbh, one of the easiest ways of creating a decent random terrain is just filling a 8x8 or 16x16 array with randoms and scaling it up using an algorithm somewhat more advanced than linear interpolation. anything goes here really.. experiement with a sin curve, a catmull rom splinte or cubic interpolation.. shoule be cheaper per definition.. all ofcourse dependign on how you go about implementing it :)
Challenge Trophies Won:

Offline taj

  • Bytes hurt
  • DBF Aficionado
  • ******
  • Posts: 4810
  • Karma: 189
  • Scene there, done that.
    • View Profile
Re: Shadow maping in 4k under linux. [ now with binaries ]
« Reply #47 on: December 05, 2007 »
rbraz, thanks. Ah bollocks..I posted wrong binary, I'll goive it one more go tonight. Sorry for wasting your time. I'm an idiaot.

MIND! good to see you posting again - hope I get to see more of your stuff Texture-San.
Challenge Trophies Won:

Offline taj

  • Bytes hurt
  • DBF Aficionado
  • ******
  • Posts: 4810
  • Karma: 189
  • Scene there, done that.
    • View Profile
Re: Shadow maping in 4k under linux. [ now with binaries ]
« Reply #48 on: December 06, 2007 »
Rbraz or someone with Nvidia, could you try this one please and report any errors...
Challenge Trophies Won:

Offline Rbz

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 2757
  • Karma: 493
    • View Profile
    • https://www.rbraz.com/
Re: Shadow maping in 4k under linux. [ now with binaries ]
« Reply #49 on: December 06, 2007 »
I got this error, might be easy to fix I guess...
Challenge Trophies Won:

Offline mind

  • Texture-San
  • DBF Aficionado
  • ******
  • Posts: 2324
  • Karma: 85
    • View Profile
    • boredom is a beatiful thing.
Re: Shadow maping in 4k under linux. [ now with binaries ]
« Reply #50 on: December 07, 2007 »
rbraz, thanks. Ah bollocks..I posted wrong binary, I'll goive it one more go tonight. Sorry for wasting your time. I'm an idiaot.

MIND! good to see you posting again - hope I get to see more of your stuff Texture-San.

aww <3

i havent been doing much coding lately though.. lack of inspiration i guess.. ohh but i did some ROI-coding the other week and its pretty funky stuff, i'll make sure to post some pics and explain how it's done, later :D
Challenge Trophies Won:

Offline benny!

  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4384
  • Karma: 228
  • in this place forever!
    • View Profile
    • bennyschuetz.com - mycroBlog
Re: Shadow maping in 4k under linux. [ now with binaries ]
« Reply #51 on: December 07, 2007 »
Rbraz or someone with Nvidia, could you try this one please and report any errors...


First two message requester pops up in fullscreen mode with no text in it at all. Then
it shows a white morphing landscape (sorry did not follow this thread). Test system
has a GeForce 76oo NT installed.

Hope this helps ??? Didnt expect to find any win executables in a linux thread  ::)
[ mycroBLOG - POUET :: whatever keeps us longing - for another breath of air - is getting rare ]

Challenge Trophies Won:

Offline taj

  • Bytes hurt
  • DBF Aficionado
  • ******
  • Posts: 4810
  • Karma: 189
  • Scene there, done that.
    • View Profile
Re: Shadow maping in 4k under linux. [ now with binaries ]
« Reply #52 on: December 07, 2007 »
Well after Bennies comments, I'm not so hopeful but this should fix your first problem Rbraz. If its white after this then I think its Nvidia having trouble with more than one shadowmap sampler : in which case this program will never work on Nvidia (less than 8XXX series).

Anyway, worth a try...

Challenge Trophies Won:

Offline benny!

  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4384
  • Karma: 228
  • in this place forever!
    • View Profile
    • bennyschuetz.com - mycroBlog
Re: Shadow maping in 4k under linux. [ now with binaries ]
« Reply #53 on: December 07, 2007 »
Whatever you did master taj - it works like a charme now.

No message requesters anymore - instead a smooth rotating landscape
with very cool lightning !!!!

Looks awesome!
« Last Edit: December 07, 2007 by benny! »
[ mycroBLOG - POUET :: whatever keeps us longing - for another breath of air - is getting rare ]

Challenge Trophies Won:

Offline Rbz

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 2757
  • Karma: 493
    • View Profile
    • https://www.rbraz.com/
Re: Shadow maping in 4k under linux. [ now with binaries ]
« Reply #54 on: December 07, 2007 »
Now it's working fine!

That's really cool effect
Challenge Trophies Won:

Offline taj

  • Bytes hurt
  • DBF Aficionado
  • ******
  • Posts: 4810
  • Karma: 189
  • Scene there, done that.
    • View Profile
Re: Shadow maping in 4k under linux. [ now with binaries ]
« Reply #55 on: December 07, 2007 »
Brilliant thanks guys, karma coming your way for the help.

Frea I'm including the archive below with the shaders fixed etc. This version works on ATi and Nvidia.
WARNING: dont forget to add crinkler into directory...

Taj
Challenge Trophies Won:

Offline frea

  • C= 64
  • **
  • Posts: 61
  • Karma: 2
    • View Profile
Re: Shadow maping in 4k under linux. [ now with binaries ]
« Reply #56 on: December 07, 2007 »
Thanks :). Going to read these.
Nananan.

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: Shadow maping in 4k under linux. [ now with binaries ]
« Reply #57 on: December 07, 2007 »
Previous one (debug.zip) ran on my Vista 8600GT after displaying two empty message boxes and a 3rd one complaining about 2 uninitialised vars in the frament shader.
Latest one NVgood is lovely :)

Jim
Challenge Trophies Won:

Offline Tetra

  • DBF Aficionado
  • ******
  • Posts: 2532
  • Karma: 83
  • Pirate Monkey!
    • View Profile
Re: Shadow maping in 4k under linux. [ now with binaries ]
« Reply #58 on: December 18, 2007 »
That terrain looks gorgeous!
Challenge Trophies Won: