Forum

Weird gun rendering issues

Discuss programming topics for the various GPL'd game engine sources.

Moderator: InsideQC Admins

Weird gun rendering issues

Postby ScatterBox » Mon Oct 28, 2013 8:26 pm

OK, so this is more of a general question more then a coding question. Basically when I get in game the guns that I made seem to render in the middle of the screen. It's not where they're positioned because if I drag them back I only see the very front of the barrel of the gun in the middle of the screen. I have been looking at the render functions all over. I have not found where it actually tells the engine to render the gun. I don't know what to do. :x :?
User avatar
ScatterBox
 
Posts: 50
Joined: Sun Oct 13, 2013 7:53 pm

Re: Weird gun rendering issues

Postby leileilol » Mon Oct 28, 2013 8:38 pm

If you search for r_drawviewmodel it should lead you to some clues.

Your own gun models should be placed below the 0,0,0 origin, not directly in it (in the modeling program that is). It'd be in your face for it and be worse for the lower viewsize weapon nudging.
i should not be here
leileilol
 
Posts: 2783
Joined: Fri Oct 15, 2004 3:23 am

Re: Weird gun rendering issues

Postby ScatterBox » Mon Oct 28, 2013 8:59 pm

leileilol wrote:If you search for r_drawviewmodel it should lead you to some clues.

Your own gun models should be placed below the 0,0,0 origin, not directly in it (in the modeling program that is). It'd be in your face for it and be worse for the lower viewsize weapon nudging.


Ahh, this opened up so many doors for me! I got into r_alias.c and it looks promising! Thanks!! :)
User avatar
ScatterBox
 
Posts: 50
Joined: Sun Oct 13, 2013 7:53 pm


Return to Engine Programming

Who is online

Users browsing this forum: No registered users and 1 guest