Graal Forums  

Go Back   Graal Forums > Development Forums > Level Design
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #61  
Old 08-02-2014, 03:28 PM
scriptless scriptless is offline
Banned
Join Date: Dec 2008
Location: N-Pulse
Posts: 1,412
scriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to behold
Quote:
Originally Posted by Draenin View Post
Really wish this worked for terrain too, but it will probably never happen. :[
Would be more likely to happen if people fully understood how terrain works. If you can figure out how the heights all work you can draw polygons and apply a texture to them. Then you could have terrain but I'm not quite sure how terrain works and I don't have any levels to use to test with.
Reply With Quote
  #62  
Old 08-04-2014, 08:11 PM
Torankusu Torankusu is offline
Elite Member
Torankusu's Avatar
Join Date: Jun 2001
Posts: 10,057
Torankusu has a spectacular aura aboutTorankusu has a spectacular aura about
was pretty sure the default level editor would draw terrain maps just fine.

i am interested in nw2png improvements.

There is very minimal support for drawing layers correctly. When I get a chance I will post some examples.
__________________
Quote:
Originally posted by Spark910
Think befreo you type.
Reply With Quote
  #63  
Old 08-04-2014, 10:35 PM
scriptless scriptless is offline
Banned
Join Date: Dec 2008
Location: N-Pulse
Posts: 1,412
scriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to behold
Quote:
Originally Posted by Torankusu View Post
was pretty sure the default level editor would draw terrain maps just fine.

i am interested in nw2png improvements.

There is very minimal support for drawing layers correctly. When I get a chance I will post some examples.
It does show terrain right. But I have no idea how you would edit it in the first place. Draenin k ow more on how it works then I do. Layers art to hard to work with on levels but if you tried to do gmaps it can get very resource heavy. I would probably struggle more with npc but those aren't to hard it's more the set shape part or light effects ect.

What I want to do is make an html5 based gmap editor. Where you can edit a level and zoom out to see the whole gmap and still place trees and stuff. That would be a game changer there. But since it involves similar work as this I think the 2 projects can benefit off each other. My code sadly is in c++ not html5. Luckily it's not hard to convert.

But like I said the 2 projects could benefit off each other. Some people still use .graal levels for example level2.graal from npulse. I'm sure other people have levels saved on there hard drive from years ago.

Also does anyone know if you can do terrain on .graal levels?
Reply With Quote
  #64  
Old 08-04-2014, 11:02 PM
cyan3 cyan3 is offline
Registered User
cyan3's Avatar
Join Date: Nov 2005
Location: England
Posts: 2,919
cyan3 has a brilliant futurecyan3 has a brilliant futurecyan3 has a brilliant futurecyan3 has a brilliant futurecyan3 has a brilliant futurecyan3 has a brilliant futurecyan3 has a brilliant future
Quote:
Originally Posted by scriptless View Post
Also does anyone know if you can do terrain on .graal levels?
I'd hazard a guess at no considering the only two ways to apply terrain to an .nw file is by either using the terrain generator or editing the values between the HEIGHTS and HEIGHTSEND tags and since .graal files are not readable as plain text it would be difficult to apply the terrain.
Reply With Quote
  #65  
Old 08-05-2014, 02:53 AM
scriptless scriptless is offline
Banned
Join Date: Dec 2008
Location: N-Pulse
Posts: 1,412
scriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to behold
Quote:
Originally Posted by cyan3 View Post
I'd hazard a guess at no considering the only two ways to apply terrain to an .nw file is by either using the terrain generator or editing the values between the HEIGHTS and HEIGHTSEND tags and since .graal files are not readable as plain text it would be difficult to apply the terrain.
Well, .graal and .zelda used "#" character to separate data chunks. I doubt there is any chunk of data after the last segment since I see "# # #" ect at the end. But correct me if im wrong they also have height data in gmaps? If thats correct would the terrain also be applied to .graal levels?

Like I said I am not familiar with terrain like Draenin is. And maybe someone else could help answer that question? Maybe I am remembering things wrong even, not sure.
Reply With Quote
  #66  
Old 08-06-2014, 04:01 AM
Draenin Draenin is offline
Magnificent Bastard
Draenin's Avatar
Join Date: Dec 2004
Location: Bermuda Triangle
Posts: 6,790
Draenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud of
Send a message via AIM to Draenin Send a message via MSN to Draenin Send a message via Yahoo to Draenin
Quote:
Originally Posted by Torankusu
was pretty sure the default level editor would draw terrain maps just fine.
It does, but your only option is to print the map at a fraction of the size, and it does not include NPCs.

Quote:
Originally Posted by scriptless
Like I said I am not familiar with terrain like Draenin is. And maybe someone else could help answer that question?
Sadly, there's only so much I can tell you about gmaps in relation to things like .graal levels and so forth, and I can't even begin to fathom how to replicate them, other than using pure black magic.

But, just to entertain the notion, here's a dump of information from a terrain gmap.

PHP Code:
GRMAP001
WIDTH 20
HEIGHT 20
GENERATED testmap_t
-20.nw
GENSEED 833147934
GENBASE 
-15
GENEVENBORDERS true
GENHEIGHT 50
GENCHAOS 0.55
LEVHEIGHT 3.774298
LEVCHAOS 0.55
MAPIMG testmap
.png
MINIMAPIMG 

HEIGHTMAP
-15,-15,-15,-15,-18,-15,-15,-15,-15,-18,-15,-15,-15,-15,-17,-15,-15,-15,-15,-15,-15
-15,-5,-8,-7,-4,-10,-16,-10,-10,-8,-2,-12,-24,-13,-9,-12,-18,-18,-10,-14,-15
-15,-10,-8,-9,-7,-9,-2,4,5,6,0,-3,-17,-20,-18,-12,-17,-28,-17,-16,-15
-15,-7,-3,-6,-4,-1,7,7,10,4,0,-8,-10,-10,-9,1,-14,-16,-23,-22,-15
-15,-15,-6,0,0,3,-1,-2,4,2,8,-1,-12,-11,1,4,-19,-21,-24,-15,-15
-15,-15,-2,2,2,0,0,-7,4,5,11,-2,-8,-6,0,-1,-17,-20,-24,-21,-15
-15,0,0,0,-3,-7,3,-3,0,3,8,3,15,10,2,2,0,-8,-9,-10,-15
-15,-6,-6,-2,-4,1,4,11,11,17,17,21,22,16,17,10,4,-3,-16,-17,-15
-15,-11,-8,0,1,8,5,4,6,0,2,10,11,5,2,4,0,-7,-13,-19,-15
-15,-4,2,7,2,3,2,4,6,4,-6,-1,-2,5,4,2,0,-7,-9,-9,-15
-15,-4,6,7,10,5,0,9,6,4,-7,-8,-13,-2,1,8,2,-7,-13,-15,-15
-15,-6,-10,-1,0,-6,-4,-3,-6,-6,-9,2,-3,3,-5,-4,2,2,-8,-12,-15
-15,-25,-28,-21,-24,-28,-26,-20,-7,-11,-7,-8,-1,-4,-4,-1,9,4,-7,-8,-15
-15,-29,-33,-26,-28,-34,-26,-21,-26,-29,-26,-20,-12,-8,-8,-10,-8,-4,-3,-10,-15
-15,-23,-32,-27,-26,-32,-27,-26,-30,-30,-31,-23,-21,-22,-18,-15,-11,-12,-13,-11,-15
-15,-25,-29,-32,-33,-34,-36,-34,-26,-31,-33,-27,-22,-28,-22,-21,-19,-21,-17,-21,-15
-15,-24,-22,-37,-32,-36,-28,-36,-25,-24,-26,-17,-19,-13,-17,-13,-22,-14,-11,-13,-15
-15,-16,-26,-33,-35,-31,-25,-31,-20,-20,-22,-8,-4,-11,-9,-7,-3,-7,-17,-17,-15
-15,-13,-14,-16,-26,-27,-32,-28,-28,-23,-24,-11,-4,-19,-16,-18,-22,-12,-18,-14,-15
-15,-15,-16,-15,-19,-17,-25,-22,-25,-18,-17,-14,-10,-17,-18,-13,-21,-14,-18,-17,-15
-15,-15,-15,-15,-15,-15,-15,-15,-15,-15,-15,-15,-15,-15,-15,-15,-15,-15,-15,-15,-15
HEIGHTMAPEND

RANDOMSEEDS
201981101
,711534611,1059592857,788720191,398314757,778770667,785466353,1374741527,1638575965,528841667,1419001673,8130543,1033511861,273272987,2001374369,860220871,1534437901,1969854323,1710074873,823131551
938190694
,1834489955,240119042,1037538112,1822169373,1213279387,11475898,806409336,1437721813,1871477459,1641505905,2049183663,2082245261,1172407051,973621034,1027130600,896240198,415745348,975258594,555119648
153034496
,1987070966,2044259084,2066162242,1492400024,226136334,2139862180,94783578,1093407280,397932582,815005756,2085572722,1819553480,559808830,1949257172,1659353738,77204832,1271016534,2092637548,1582630562
966795013
,1326766034,2060929856,1065760591,775420413,1990758730,1409784632,1952863686,415604469,1271133378,753628465,1855970878,1152159212,561152571,1068914985,386814135,2029012708,878688691,1044104993,2083335470
1414230299
,625820961,1326333511,681579149,2146080755,579978361,905686559,1953925861,92188875,1193579985,2123550711,95687997,737754019,541014313,1507140559,379728277,611039355,1262169729,1323575719,497704941
1957406091
,1261953449,363091816,1495372997,1435420611,1240972897,1152575135,1830768253,1426236411,2139567385,1809444823,292053558,1539226163,1409664465,1176564495,1332498413,1696238187,3338378,1026519112,1564120997
1494920638
,700928596,680236810,1754415584,753875158,924156396,1332560674,772391544,159344110,836350852,1035030842,1868694800,408990982,1622239004,2021474642,1506314664,1615373854,492444852,1846973290,2039140416
1695801530
,1375760296,1425252150,198921573,951253043,567393697,349723567,1245655132,126106027,2113475992,70320679,1745804628,930293027,2106193808,314118815,1026413645,735899,389538697,1036782871,2099221828
455086505
,484545615,2090252821,1717360891,1091921665,1206647335,1358710893,1998071763,2091748953,1573687807,659384517,1226205355,964822961,1608834007,1546885917,1640569731,2068599561,766924719,276324213,281133147
1846280273
,56698256,664074862,127020268,379063050,634946248,1572217381,648156964,798633922,1615256063,616113118,550026076,2031218297,2140384055,837648278,389912980,731825970,658929264,256030030,500707788
1828359068
,1489518034,1585307176,1349046942,50176308,988671978,56526016,842876342,12007628,1036944386,1091595608,1667979982,1680134756,1072658970,539039728,671650278,107212284,1358320178,1346241672,21654270
365538833
,39977247,2018147020,731781403,129726985,766696343,2069109700,2027731090,725995521,1764892686,1887176380,442728971,744239097,1669025414,2022030260,2057172354,2123504112,1086973694,2010430124,899126011
1732078679
,427443101,53632003,65317769,1843546159,913598453,1361207515,202877153,1672074759,1660853837,1204934579,1062959161,844469727,908224165,1494368395,533305745,700909495,319373565,1221925731,664505577
1389395383
,389073430,126737428,674922930,337914096,93380558,914183244,1184552041,1961709095,453595014,2012350083,2023178529,1274244447,818518334,184775356,1856980953,1855850135,480328950,1231624435,839018642
1353291418
,551259248,1340333670,362320508,1431621298,1101977864,911087486,769724436,1513318602,73656224,2067427990,1973292972,1865082082,619198520,2015260590,491589956,490783482,1313426128,193957574,277583068
298835207
,1144783412,962098179,325800049,1926518142,10150189,127660411,441984105,1667348470,1584040484,1475483890,831750753,150176879,2135850268,2141612650,26274393,1722104550,814365205,1839490530,1516493904
725823269
,66822411,1990726161,1176442935,1647798653,1418583011,1986749801,1707809807,1333802453,1148979387,1882458817,640143847,1552356397,1240967059,2088469017,1601616319,1188398213,894580843,870009713,806966167
634356670
,995382588,455713370,1759009047,963250038,1262934899,733192978,401591376,133391662,1892490155,1822440905,373471624,108731622,14587364,2119103105,1662558399,1320201885,319998492,29311290,1549337079
1324338360
,847043630,1717228996,653156218,983514960,19815238,657176924,59539346,1163981800,933919838,22126324,1731985834,914516608,482787190,1420428940,744646082,208741144,1148757134,70414372,109390810
1577477020
,930121963,740802777,2142980454,1145700500,2133877858,39228113,404638175,1072752525,1500342746,1010200265,1516254294,729716869,1045633363,1864029376,1618774222,1964413820,665645771,1073169593,34522951
RANDOMSEEDSEND 
What I can tell you is that each height in the height map represents a vertex which is basically the corner of each level in the gmap. There is also a grid of about 9 x 9 smaller vertices on each level (including the level corners) which can be raised or lowered to affect the slope of the lines between each vertex.

It is very likely that these smaller heights are determined by the massive number of seeds down at the bottom of the list through pseudorandom number generation, but the geometry itself and the subsequent 'stretching' of tile textures when you move these vertices up and down is likely a product of either tessellation or fractal equations. Or both. I really have no clue.

If you're interested in how they work, here's a little video of me making a volcano.

Reply With Quote
  #67  
Old 08-06-2014, 02:44 PM
scriptless scriptless is offline
Banned
Join Date: Dec 2008
Location: N-Pulse
Posts: 1,412
scriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to behold
Thanks Draenin, thats what I was referring to. There are a lot of things that I cannot understand about that either sadly either.
Reply With Quote
  #68  
Old 08-08-2014, 02:47 AM
Draenin Draenin is offline
Magnificent Bastard
Draenin's Avatar
Join Date: Dec 2004
Location: Bermuda Triangle
Posts: 6,790
Draenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud of
Send a message via AIM to Draenin Send a message via MSN to Draenin Send a message via Yahoo to Draenin
Quote:
Originally Posted by scriptless View Post
Thanks Draenin, thats what I was referring to. There are a lot of things that I cannot understand about that either sadly either.
Like I said, it pretty much works through black magic.
Reply With Quote
  #69  
Old 09-13-2016, 07:46 AM
itsCyber itsCyber is offline
A sexy Scotsman
itsCyber's Avatar
Join Date: Sep 2016
Location: Somewhere in Sunny Scotland
Posts: 11
itsCyber is on a distinguished road
This is creative works well I know I'm late but good work Dusty!
__________________
Graalians are friends. Not Food
~FindingStefan
Reply With Quote
  #70  
Old 09-18-2016, 03:45 AM
Crono Crono is offline
:pluffy:
Join Date: Feb 2002
Location: Sweden
Posts: 20,000
Crono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond repute
Send a message via AIM to Crono
Quote:
Originally Posted by itsCyber View Post
This is creative works well I know I'm late but good work Dusty!
such a useful tool tbh
__________________
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 02:37 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.