ivanforum ivanforum
Forum for Iter Vehemens ad Necem
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   fchat fChat   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

3D mode
Goto page 1, 2, 3, 4, 5  Next
 
Post new topic   Reply to topic    ivanforum Forum Index -> Programming
View previous topic :: View next topic  
Author Message
Z
wolf


Joined: 19 Jan 2005
Posts: 336

PostPosted: Fri May 06, 2005 9:56 pm    Post subject: 3D mode Reply with quote

If you would like to see the world of Ivan through the eyes of your character, download my patch from http://www.freewebs.com/z137/ivan.html . The 3D mode is activated by pressing # (shift-3).

Known issues:
- may be slow, and seems to cause missing keypresses sometimes
- large objects and monsters are drawn incorrectly
- fluids are not drawn on armor
- a strange cursor in the world map
- some stuff looks as if hanging in the air
- no sky in the towns
- carpet and pool in New Attnam is strange (that's because there is no information in olterra.dat whether the picture is a object standing here, a part of floor, a part of ceiling, or a part of wall)
- squares that IVAN thinks the PC does not see are not drawn (for example, ones behind large monsters)
- does not conform to coding standards used by the authors (too lazy to learn and use them)
Back to top
View user's profile Send private message
TheFallenOne222
gibberling


Joined: 03 Apr 2005
Posts: 166

PostPosted: Sat May 07, 2005 5:52 am    Post subject: Reply with quote

Very nice work. Smile With some minor fixes, I think it could be a great addition to IVAN.

The biggest problem I have with it is three things - One, not having a minimap. Easiest way to do this is to take what would be the normal 2D screen and draw it as a miniature form in one of the corners. Might slow it down a bit, but it's worth trying. Two, the area you can't see is kind of... weirdly done. If there was possibly some better way of doing it (Such as drawing a "greyed out" version of the walls in that area - assuming you've explored there - and don't draw objects) then it would be perfect. And three, the fact that the ceiling seems to always be the ground tile. If it was that way while in the caves but not in towns or the world map, that would be perfect.
Back to top
View user's profile Send private message
Z
wolf


Joined: 19 Jan 2005
Posts: 336

PostPosted: Sat May 07, 2005 7:11 am    Post subject: Re: 3D mode Reply with quote

[BOT]FLUFFY wrote:
You should put this in your Sig. Very nicely done, but why is the executable so much smaller?


I UPX'ed it.

About minimap: for now, you can switch to the normal mode by typing "#" and back, which is quite convenient. But I'll think about minimap, should not be too hard to add.
Back to top
View user's profile Send private message
Z
wolf


Joined: 19 Jan 2005
Posts: 336

PostPosted: Sat May 07, 2005 10:08 am    Post subject: Reply with quote

I uploaded the new version. Fixes:

- changed background to an uniform color, which depends on location
- no ceilings outside
- added the required information to olterra.dat and glterra.dat
- a bit cleaner code
- nice altars

No minimap yet (use # to see the map). Drawing a "greyed out" version of walls would be a bit hard, so not done either.
Back to top
View user's profile Send private message
DodgeK
zombie


Joined: 29 Apr 2005
Posts: 66
Location: The Nether Lands

PostPosted: Sat May 07, 2005 11:55 am    Post subject: Reply with quote

Tiles and walls don't show up in my game Sad. I can make a good estimate of how it would look though, and I think it would look neat Smile.
Back to top
View user's profile Send private message
Z
wolf


Joined: 19 Jan 2005
Posts: 336

PostPosted: Sat May 07, 2005 12:13 pm    Post subject: Reply with quote

Maybe you forgot to move glterra.dat, olterra.dat and define.dat to their correct location (Script subdirectory) ?
Back to top
View user's profile Send private message
DodgeK
zombie


Joined: 29 Apr 2005
Posts: 66
Location: The Nether Lands

PostPosted: Sat May 07, 2005 2:10 pm    Post subject: Reply with quote

Yes... yes I did... Embarassed
Back to top
View user's profile Send private message
Lege
mutant ass


Joined: 07 Apr 2005
Posts: 99
Location: I ride the yellow dropship!

PostPosted: Sat May 07, 2005 2:52 pm    Post subject: Reply with quote

That is just simply genious. What else is there to say?
Back to top
View user's profile Send private message
Z
wolf


Joined: 19 Jan 2005
Posts: 336

PostPosted: Sat May 07, 2005 3:13 pm    Post subject: Reply with quote

Thanks! New version:

- mode switcher key changed to 'x' from '#'
- isometric mode added (currently not very good, since only shows visible squares, and also is much slower than it could be)
- mini-map added, although it is not very useful, and not very effective, since I didn't find how to use the Memorized square graphic (it is activated with '#')
- windows are now transparent and ceiling above the pool looks a bit better now
- eye level now depends on PC size, Flying state, and Confused state (confusion is obvious in FPP mode and not in the normal mode, but I don't think it's very bad)

Forgot to mention that the lamps on walls are not shown, because I don't know how to find a proper graphic for them. Also, explosions are not touched.

I didn't try to add darkened squares out of line of sight, because IVAN currently remembers them only as 2D square, so I don't know how to do it in a way that looks neat.
Back to top
View user's profile Send private message
TheFallenOne222
gibberling


Joined: 03 Apr 2005
Posts: 166

PostPosted: Sat May 07, 2005 5:52 pm    Post subject: Reply with quote

Wow, talk about fast updates. :)

Two minor thoughts:

1) In 2D mode, when attempting to open a door, if you move into it so that you get the "Would you like to open the door? (Y/N)" prompt and then hit the direction of the door again, it automatically tries to open it. In 3D mode, it just cancels it and assumes you don't want to open the door.

2) For the minimap - Good job. Smile I think it would be more useful to display a bit more of a "zoomed in" version that scrolled with you though. That way you could see the immediate area around you, which is all that is really needed I think. Although I'm playing in Windowed mode, which might make the minimap seem smaller to me than those playing in fullscreen, so that might be why I'm having troubles making much of anything out on it.
Back to top
View user's profile Send private message
Z
wolf


Joined: 19 Jan 2005
Posts: 336

PostPosted: Sat May 07, 2005 6:49 pm    Post subject: Reply with quote

Uploaded a new version, with a much faster rendering algorithm, and also
the thingy about doors has been fixed.
_________________
3D mode, screenshots and my other IVAN stuff
Back to top
View user's profile Send private message
hexi
Party Vice Chairman


Joined: 04 Jan 2005
Posts: 74

PostPosted: Sat May 07, 2005 7:59 pm    Post subject: Reply with quote

Shocked Shocked Shocked Shocked Shocked


Now this is something I really did not expect to see! I like the isometric view especially. I really hope you continue to work on this excellent patch! You know we like to think eye candy is not really important, but I'm sure that many new players disagree...


---

Oh yeah and I forgot... I uploaded a couple of pics to the wiki just to show off to friends :)

http://a25a.mtalo.ton.tut.fi/wiki/index.php/3d_screenshots
Back to top
View user's profile Send private message Send e-mail
Z
wolf


Joined: 19 Jan 2005
Posts: 336

PostPosted: Sat May 07, 2005 9:22 pm    Post subject: Reply with quote

Of course, most of this eyecandy has been here already Smile. My creations are the perspective, renderer, and assigned the proper drawing location to each object.

[BOT]FLUFFY wrote:
Simply gorgeous. The only suggestion I have right now that you already haven't addressed is the original IVAN icon for the executable. Very Happy


I suppose that's because the original is compiled with Visual C, and mine is compiled with MinGW.

I have another update prepared, but the server seems to be down currently.
_________________
3D mode, screenshots and my other IVAN stuff
Back to top
View user's profile Send private message
DodgeK
zombie


Joined: 29 Apr 2005
Posts: 66
Location: The Nether Lands

PostPosted: Sat May 07, 2005 9:30 pm    Post subject: Reply with quote

Why is it that your executable is smaller than the normal one, btw?
Back to top
View user's profile Send private message
Z
wolf


Joined: 19 Jan 2005
Posts: 336

PostPosted: Sat May 07, 2005 9:40 pm    Post subject: Reply with quote

I UPX'ed it (see http://upx.sourceforge.net/ ). The first release consisted only of executable, so I've decided to use UPX, not ZIP. The further releases were UPX'ed because the first version was.
_________________
3D mode, screenshots and my other IVAN stuff
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    ivanforum Forum Index -> Programming All times are GMT
Goto page 1, 2, 3, 4, 5  Next

Page 1 of 5

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group