DieHard Wolfers Forum Index DieHard Wolfers
A Wolfenstein 3d Fan Community


  Hosted by: MCS & Areyep.com - Designed by: BrotherTank

Original Yahoo Forum - Die Hard Archives

AReyeP HomepageAreyep Homepage DieHard Wolfenstein BunkerDieHard Wolfenstein Bunker Log inLog in RegisterRegister Banlist FAQFAQ Search ForumsSearch

  Username:    Password:      Remember me       

[HELP WOLF4SDL] High-Res Weapons.
Page 1 of 1
DieHard Wolfers Forum Index -> SDL Code Crackers View Previous TopicRefresh this PageAdd Topic to your Browser FavoritesSearch ForumsPrint this TopicE-mail TopicGoto Page BottomView Next Topic
Post new topicReply to topic
Author Message
Raziel
DieHard SS
DieHard SS


Joined: 03 Dec 2005
Last Visit: 03 Dec 2009

Topics: 49
Posts: 485
Location: Israhell
israel.gif

PostPosted: Sun Jul 13, 2008 4:52 am
   Subject: [HELP WOLF4SDL] High-Res Weapons.
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Next PostGoto Bottom of Posts

Greetings to you all..
I was wondering if anyone could help me on how to make High-Res Weapons with Wolf4SDL code.
Since it's not the same as in the old code.. How can I have High-Res Weapons like Andy did on his Mac Wolf?
Thanks in advance for the gallant who answers the call Wink

-Raziel A.

_________________
Raziel A.
Ripper
Code Master - Developer
Code Master - Developer


Joined: 15 Mar 2003
Last Visit: 30 Sep 2008

Topics: 21
Posts: 527
Location: Germany
blank.gif

PostPosted: Sun Jul 13, 2008 5:58 am
   Subject: Re: [HELP WOLF4SDL] High-Res Weapons.
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

Which kind of "High-Res" are you talking about? 128x128, 128x64 or something else?
Do you want all other textures and sprites to also have a 128x128 resolution?
If yes, "just" enable the USE_HIRES option in version.h and convert your VSWAP to 128x128 (by replacing all graphics by high quality ones or you could also stretch the graphics without blurring them).

_________________
Life is an awful game, but the graphics resolution rocks ;D
Raziel
DieHard SS
DieHard SS


Joined: 03 Dec 2005
Last Visit: 03 Dec 2009

Topics: 49
Posts: 485
Location: Israhell
israel.gif

PostPosted: Sun Jul 13, 2008 1:59 pm
   Subject: Re: [HELP WOLF4SDL] High-Res Weapons.
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

Already enabled the USE_HIRES option. I talk about when the weapon sprite is actually BIG but in the game itself it's scaled down.. You know, like in Andy's Macenstein, don't tell me you haven't seen that..
Anyway it has something to do with those lines:
::: CODE :::
pixheight=scale*SPRITESCALEFACTOR;
actx=xcenter-scale;
upperedge=viewheight/2-scale;


Hope you got me now ;]

_________________
Raziel A.
Ripper
Code Master - Developer
Code Master - Developer


Joined: 15 Mar 2003
Last Visit: 30 Sep 2008

Topics: 21
Posts: 527
Location: Germany
blank.gif

PostPosted: Sun Jul 13, 2008 2:24 pm
   Subject: Re: [HELP WOLF4SDL] High-Res Weapons.
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

So you want the weapon sprite to be shrinked?
You can do this by changing the third parameter of the second SimpleScaleShape call in the DrawPlayerWeapon function in wl_draw.cpp:
::: CODE :::
SimpleScaleShape(viewwidth/2,shapenum,viewheight/2);

But this should be the same way, as you do it in normal Wolf3D.

_________________
Life is an awful game, but the graphics resolution rocks ;D
Raziel
DieHard SS
DieHard SS


Joined: 03 Dec 2005
Last Visit: 03 Dec 2009

Topics: 49
Posts: 485
Location: Israhell
israel.gif

PostPosted: Sun Jul 13, 2008 3:33 pm
   Subject: Re: [HELP WOLF4SDL] High-Res Weapons.
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

Well it's working.. One problem though.. The weapon is stuck in the middle of the screen |:
how can I get it down to it's normal place "attached" to the stat-bar? >__<

_________________
Raziel A.
Ripper
Code Master - Developer
Code Master - Developer


Joined: 15 Mar 2003
Last Visit: 30 Sep 2008

Topics: 21
Posts: 527
Location: Germany
blank.gif

PostPosted: Sun Jul 13, 2008 3:48 pm
   Subject: Re: [HELP WOLF4SDL] High-Res Weapons.
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

Hm, you could add another parameter to SimpleScaleShape providing an offset you add the upperedge variable. For DEMO and DeathCam this parameter should be zero and for the weapon viewheight/2+1 when you use viewheight/2 as the height parameter.

_________________
Life is an awful game, but the graphics resolution rocks ;D
Raziel
DieHard SS
DieHard SS


Joined: 03 Dec 2005
Last Visit: 03 Dec 2009

Topics: 49
Posts: 485
Location: Israhell
israel.gif

PostPosted: Sun Jul 13, 2008 4:03 pm
   Subject: Re: [HELP WOLF4SDL] High-Res Weapons.
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

Can you show me how to write that down? I really didn't understand ya >__< I hope I'm not asking for too much :\
Thanks for the help

_________________
Raziel A.
Ripper
Code Master - Developer
Code Master - Developer


Joined: 15 Mar 2003
Last Visit: 30 Sep 2008

Topics: 21
Posts: 527
Location: Germany
blank.gif

PostPosted: Sun Jul 13, 2008 4:25 pm
   Subject: Re: [HELP WOLF4SDL] High-Res Weapons.
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

Oh, a typo: an offset you add to the upperedge variable (that's the one you mentioned in your code snippet).

Please try to solve this problem by yourself. Perhaps it was just a problem with my typo to irritate you, but this really is an easy thing. Try to understand the meaning of the upperedge variable. Play around with it by adding some arbitrary value to it in the code (for example 50). Also have a look at the height variable. Don't give up early and you will see, that you will be able to do great things if you just try!

_________________
Life is an awful game, but the graphics resolution rocks ;D
Raziel
DieHard SS
DieHard SS


Joined: 03 Dec 2005
Last Visit: 03 Dec 2009

Topics: 49
Posts: 485
Location: Israhell
israel.gif

PostPosted: Sun Jul 13, 2008 4:57 pm
   Subject: Re: [HELP WOLF4SDL] High-Res Weapons.
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

Fixed. Without even touching the SimpleScaleShape line.
I just touched the wrong lines.. Thanks for the help ;]

_________________
Raziel A.
Ripper
Code Master - Developer
Code Master - Developer


Joined: 15 Mar 2003
Last Visit: 30 Sep 2008

Topics: 21
Posts: 527
Location: Germany
blank.gif

PostPosted: Sun Jul 13, 2008 5:04 pm
   Subject: Re: [HELP WOLF4SDL] High-Res Weapons.
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Bottom of Posts

With the words of Hancock: Good job! Thumbs Up

_________________
Life is an awful game, but the graphics resolution rocks ;D
Display posts from previous:   
Post new topicReply to topic Time synchronized with the forum server time
DieHard Wolfers Forum Index -> SDL Code Crackers View Previous TopicRefresh this PageAdd Topic to your Browser FavoritesSearch ForumsPrint this TopicE-mail TopicGoto Page TopView Next Topic
Page 1 of 1
Jump to:  

Related topics
 Topics   Replies   Views   Last Post 
No new posts Announcement: Wolf4SDL released
Author: Ripper
522 263081 Mon May 22, 2017 2:04 pm
Tricob View latest post
No new posts [help] Adding teleporters in wolf4sdl
Author: Mortimer
35 14724 Fri May 26, 2017 8:19 am
Military View latest post
No new posts [WOLF4SDL Help] Blake Stone Style doors
Author: Haasboy
3 3727 Sun Jul 20, 2008 7:56 am
Haasboy View latest post
No new posts [Help] Problem with Checkweaponchange function (wolf4sdl)
Author: Mortimer
4 3998 Sat May 17, 2008 11:26 am
Mortimer View latest post
No new posts [help] Wolf4sdl's implemented tutorials
Author: Mortimer
6 4270 Tue May 06, 2008 1:15 pm
Ripper View latest post
 
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


Copyright ©2003-2008 DieHard Wolfers
A Modified subBunker Theme by BrotherTank
Powered by phpBB © 2001, 2005 phpBB Group