Duke4.net Forums: Skyboxes - Duke4.net Forums

Jump to content

  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Skyboxes  "I'm sorta thinking of using them for my mod."

User is offline   Zaxtor 

#1

For skybox what is the correct size of all the 6 pieces you need.

I found some code about them but dunno the correct pic size for skyboxes.

Code is from edukewiki

skybox {
tile 3586 pal 0
front "mymod/sky_1.png" nocompress
right "mymod/sky_2.png" nocompress
back "mymod/sky_3.png" nocompress
left "mymod/sky_4.png" nocompress
top "mymod/sky_5.png" nocompress
down "mymod/sky_6.png" nocompress
}


I'm sure I must remove "mymod/" from the code but not the pic name.
0

User is offline   Mblackwell 

  • Evil Overlord

#2

The size doesn't matter as long as they are all square since they are going to be projected on a cube. You have to know which picture corresponds to which cube face.
0

User is offline   Zaxtor 

#3

So they'll auto stetch right

This post has been edited by Zaxtor: 21 April 2010 - 11:21 AM

0

User is offline   Zaxtor 

#4

It wont work.

I am sure I'm not doing it correctly cus I never did a skybox in my whole life.

I tried many ways I can think and it wont work.

skybox
{
tile 3586 pal 0
front sky_frnt.png
right sky_rght.png
back sky_back_3.png
left sky_left.png
top sky_top.png
down sky_down.png
}


error:

GAME.CON:14: error: expected a keyword but found `skybox'.
GAME.CON:16: error: syntax error.
GAME.CON:16: error: expected a keyword but found `tile'.
GAME.CON:16: error: expected a keyword but found `3586'.
GAME.CON:16: error: expected a keyword but found `pal'.
GAME.CON:16: error: expected a keyword but found `0'.
GAME.CON:17: error: expected a keyword but found `front'.
GAME.CON:17: error: expected a keyword but found `sky_frnt.png'.
GAME.CON:18: error: expected a keyword but found `right'.
GAME.CON:18: error: expected a keyword but found `sky_rght.png'.
GAME.CON:19: error: expected a keyword but found `back'.
GAME.CON:19: error: expected a keyword but found `sky_back_3.png'.
GAME.CON:20: error: expected a keyword but found `left'.
GAME.CON:20: error: expected a keyword but found `sky_left.png'.
GAME.CON:21: error: expected a keyword but found `top'.
GAME.CON:21: error: expected a keyword but found `sky_top.png'.
GAME.CON:22: error: expected a keyword but found `down'.
GAME.CON:22: error: expected a keyword but found `sky_down.png'.
0

User is offline   Plagman 

  • Former VP of Media Operations

#5

This is DEF code, not CON code.
0

User is offline   Zaxtor 

#6

View PostPlagman, on Apr 21 2010, 01:24 PM, said:

This is DEF code, not CON code.



I see but it does same error in DEF.con.

This post has been edited by Zaxtor: 21 April 2010 - 01:05 PM

0

User is offline   Mikko 

  • Honored Donor

#7

Here's what I used for an old map:
defineskybox 94 0 0 skyboxmikko/fire-storm512_rt.tga skyboxmikko/fire-storm512_ft.tga skyboxmikko/fire-storm512_lf.tga skyboxmikko/fire-storm512_bk.tga skyboxmikko/fire-storm512_up.tga skyboxmikko/fire-storm512_dn.tga

(Put it in duke3d.def.)
0

User is offline   Zaxtor 

#8

Still wont work.
testin is the map name


I was sure before the / is the name of the specific level.
defineskybox 3480 0 0 testin/sky_rt.tga testin/sky_ft.tga testin/sky_lt.tga testin/sky_bk.tga testin/sky_up.tga testin/sky_dn.tga


3480 (tile num).

0 not sure
0 not sure

I didn't touch the zeros.
0

User is offline   Mblackwell 

  • Evil Overlord

#9

no, anything before / is the path to the file.

so if you put the file in /highres/skybox

then it should be /highres/skybox/imagename.png
0

User is offline   The Commander 

  • I used to be a Brown Fuzzy Fruit, but I've changed bro...

#10

View PostZaxtor, on Apr 22 2010, 09:04 AM, said:

I see but it does same error in DEF.con.

Your not quite getting it are you...

You dont name "DEF" files .CON
They are named "DefFileName.DEF"

Haven't you looked at how they work in the HRP?

Try looking at my one for my mod to see how it's done correctly. (NOT A CON FILE)

https://edukeredalert.svn.sourceforge.net/s...alert/RA/RA.def

// Skyboxes
dummytile 11999 512 512
texture 11999 { pal 0 { file "RA_data/Textures/Sky_Box/Lush/blue_front.jpg" } }
skybox {
   tile 11999 pal 0
   front "RA_data/Textures/Sky_Box/Lush/blue_front.jpg"
   right "RA_data/Textures/Sky_Box/Lush/blue_right.jpg"
   back  "RA_data/Textures/Sky_Box/Lush/blue_back.jpg"
   left  "RA_data/Textures/Sky_Box/Lush/blue_left.jpg"
   top   "RA_data/Textures/Sky_Box/Lush/blue_top.jpg"
   down  "RA_data/Textures/Sky_Box/Lush/blue_down.jpg"
}

dummytile 11998 512 512
texture 11998 { pal 0 { file "RA_data/Textures/Sky_Box/Winter/Snow1024_ft.jpg" } }
skybox {
   tile 11998 pal 0
   front "RA_data/Textures/Sky_Box/Winter/Snow1024_rt.jpg"
   right "RA_data/Textures/Sky_Box/Winter/Snow1024_ft.jpg"
   back  "RA_data/Textures/Sky_Box/Winter/Snow1024_lt.jpg"
   left  "RA_data/Textures/Sky_Box/Winter/Snow1024_bk.jpg"
   top   "RA_data/Textures/Sky_Box/Winter/Snow1024_up.jpg"
   down  "RA_data/Textures/Sky_Box/Winter/Snow1024_dn.jpg"
}

0

User is offline   Zaxtor 

#11

I give up.

I'm not ready for this kind of stuff.
I'll just stick into the old school sky thing.


I have tried everything but failed.
It overwhelm me too much :P

This post has been edited by Zaxtor: 21 April 2010 - 04:16 PM

0

User is offline   OpenMaw 

  • Judge Mental

#12

View PostZaxtor, on Apr 21 2010, 05:15 PM, said:

I give up.

I'm not ready for this kind of stuff.
I'll just stick into the old school sky thing.


I have tried everything but failed.
It overwhelm me too much :P


Zaxtor, Commander just told you exactly how to do it.
0

User is offline   Zaxtor 

#13

I did it the way he mention and tried every similar ways and didn't work.

I get 30 errors instead of 10 (mikko's codes)


Or maybe skybox only work when is inside a .grp file not an individual map.

This post has been edited by Zaxtor: 21 April 2010 - 04:54 PM

0

User is offline   Mikko 

  • Honored Donor

#14

Why don't you post a screenshot of your def file and the folder where the images are?
0

User is offline   Zaxtor 

#15

I deleted the code.

Not the folder

folder is

C:\DukeNuk\New_Pro\skyboxes\skya
sky files are png


Bold letter means is where the duke with my future mod is. DukeNuk you ignore this is my (normal duke)

This post has been edited by Zaxtor: 21 April 2010 - 05:13 PM

0

User is offline   The Commander 

  • I used to be a Brown Fuzzy Fruit, but I've changed bro...

#16

Man, wtf.
What are the errors?
Are you still trying to put it into a CON file, I told you that it's not a CON file but a DEF file.

There is a difference, look at all the DEF files in the HRP.
0

User is offline   Zaxtor 

#17

where to download hrp

PS
I thought you mentioned def.con

Def means 2 things to me.

1 > Def.con
2 > def as define, definition etc,

This post has been edited by Zaxtor: 22 April 2010 - 08:02 PM

0

User is offline   Mikko 

  • Honored Donor

#18

Eh, as has been said a million times in this thread, there are also def files with the extension .def such as "duke3d.def".

Take a look at the attached map. It's my Earth Base and it uses a skybox. Just open the def file ("duke3d.def") and note the folder structure (i.e., where the actual images are).

Attached File(s)



This post has been edited by Mikko_Sandt: 23 April 2010 - 02:51 AM

0

User is offline   Zaxtor 

#19

Something is corrupted.

Your skybox and map works fine.

But mine doesn't work.
I even changed by skybox folder same as yours and still does not work.


include DEFS.CON

// skyboxes
defineskybox 3480 0 0 models/skybox/sky_rt.jpg models/skybox/sky_ft.jpg models/skybox/sky_lf.jpg models/skybox/sky_bk.jpg models/skybox/sky_up.jpg models/skybox/sky_dn.jpg


Duke loads but is like the file doesn't read.
I even did a crazy test to add "include duke3d.def" in game.con and wont work.

Version of Eduke I use is latest and same version as testing your map.
0

User is offline   Mikko 

  • Honored Donor

#20

What if you keep my duke3d.def in your folder as it is in the zip (i.e., don't modify it) and simply rename your skybox to match mine (sky_ft --> frozen_ft etc.) and then move the images to models/skybox (overwriting mine)? Do you see the new sky when playing my map? Are you sure your images are jpg?

I bet it's something dead simple.

This post has been edited by Mikko_Sandt: 23 April 2010 - 09:41 AM

0

User is offline   Zaxtor 

#21

Doesn't work.

I'll just scrap it.
Do the old school way.
I wasted like 3 days failing it due to (bug/corruption) reasons.
I'm tired of delaying my mod for some silly avoidive issues.

Maybe next time when I'm ready or my comp will let me accept it.
I am sure is win7 issues.

They are Jpeg / jpg.
Done renamed same as yours.
def file same as yours

100% same as yours and even same tile.

PS
Can the image size cause problems?

This post has been edited by Zaxtor: 23 April 2010 - 10:22 AM

0

User is offline   The Commander 

  • I used to be a Brown Fuzzy Fruit, but I've changed bro...

#22

View PostZaxtor, on Apr 24 2010, 06:20 AM, said:

I wasted like 3 days failing it due to (bug/corruption) reasons.
I'm tired of delaying my mod for some silly avoidive issues.

No you wasted 3 days because you still seem to think DEF files have relations with CON code.
Which they do not.

We have all tried to explain it to you in the most simplest terms there are and you have been given multiple examples. You need to read to learn how it is done and not keep jumping ahead and thinking it's CON code and putting DEF code in CON code.

This post has been edited by The Commander: 23 April 2010 - 10:27 AM

0

User is offline   Zaxtor 

#23

I'm new to skybox.

I put the duke3d.def like Mikko said.
I even did like his map put pal1 in mapster on the sky
Did everything 100% same and doesn't work.

I read.
When I'm new to something I'm very unfamiliar and make mistakes is NORMAL.

Is like you invented something but it will have flaws and being unstable until you find a way to stabalize your invention.
Like when Bill Gates firstly invented windows it was loaded with bugs, errors, frequent (illegal operation) (blue screen of deaths) etc.

perfection IS IMPOSSIBLE!!!!!!.


So sorry for wasting your time I will give up this stupid non workable skybox.

Plz close/lock this thread.

This post has been edited by Zaxtor: 23 April 2010 - 10:31 AM

0

User is offline   The Commander 

  • I used to be a Brown Fuzzy Fruit, but I've changed bro...

#24

DEF code is one of the first things now that new modders to Duke Nukem get into because it is alot eaiser than anything else.

I can't quite work out why you don't understand these examples we are giving you.
Is it a language problem?
0

User is offline   Zaxtor 

#25

I did as Mikko said.

When I installed a duke from scratch to test his m0d.
Sky worked.

WHen I moved his duke3d.def to my (modified duke) folder with my maps.
Made for the sky folder models/skyboxs/ files.jpg

It wont work.

I made sure they aren't capped incase is case sensitive.

Won't work still.
Is not a bad understanding issues is a bug/glitch/incompatibility/others issues.
I don't believe in miracles, I don't believe in praying.
I believe in realism.
It it doesn't work for me it wont work if I want it to work by doing it same as Mikko.

Maybe could be my mod duke folder is inside a duke folder.
I am sure is not a folder issues.

So I'll do my way.

I forget the non-working skybox thing.
and resume my modding.

This post has been edited by Zaxtor: 23 April 2010 - 10:47 AM

0

User is offline   The Commander 

  • I used to be a Brown Fuzzy Fruit, but I've changed bro...

#26

Do you even know how to define a single texture in DEF? :P
0

User is offline   Zaxtor 

#27

If u mean duke3d.def
I defineded texture by its number like mikko did.

Number or name does same thing in general
here is my code, now is mikko's code.


(code)
include DEFS.CON

// Frozen skybox
defineskybox 94 0 0 models/skybox/frozen_rt.jpg models/skybox/frozen_ft.jpg models/skybox/frozen_lf.jpg models/skybox/frozen_bk.jpg models/skybox/frozen_up.jpg models/skybox/frozen_dn.jpg



I have a folder in same area as duke3d.def with the exact letter and not capped, models/skybox/(myfiles)


the 94 is (texture number)

This post has been edited by Zaxtor: 23 April 2010 - 11:22 AM

0

User is offline   The Commander 

  • I used to be a Brown Fuzzy Fruit, but I've changed bro...

#28

How about posting a screenshot or a log file because I find it hard to understand what you are trying to explain.

To me it still looks like you are putting it in con files.
0

User is offline   Zaxtor 

#29

I'll just give up.

I did not put nothing in the con.files.
I did not touch even a bit of the con file.

My duke loads fine works but the duke3d.def doesn't do nothing.



Or

I'll do my way.
I'll start my maps then the sky I'll worry about it when is all finished or ask some1 to do it for me since my computer doesn't let me.
I'll make txt file when is finished saying if you want skyboxes.

The sky tile is i.e 3480

This post has been edited by Zaxtor: 23 April 2010 - 11:32 AM

0

User is offline   Mblackwell 

  • Evil Overlord

#30

DEFS.CON isn't related to DEF files at all.

Not one bit.

duke3d.def needs to go in the same directory as EDuke32.

http://wiki.eduke32....ki/DEF_Language
0

Share this topic:


  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic


All copyrights and trademarks not owned by Voidpoint, LLC are the sole property of their respective owners. Play Ion Fury! ;) © Voidpoint, LLC

Enter your sign in name and password


Sign in options