Phantom107 Forum

Phantom107's Forum. Discuss about games, GML, 3d, game design here. Enjoy your stay ;)
 
HomeFAQSearchRegisterMemberlistUsergroupsLog in

Share | 
 

 Parts of objects disapearing

Go down 
AuthorMessage
Guilty Sparks
Heavy Poster
avatar

Posts : 154
Join date : 2008-01-05
Location : USA East Coast

PostSubject: Parts of objects disapearing   Mon Feb 18, 2008 10:59 pm

hey, Im trying to make stairs, but parts of them keep dissapearing...
//draw stairs
{
d3d_draw_block(x,y-32,z, x-64,y+32,z+12, background_get_texture(bac_Wall),1,1)
d3d_draw_block(x,y-32,z+12, x-48,y+32,z+24, background_get_texture(bac_Wall),1,1)
d3d_draw_block(x,y-32,z+24, x-32,y+32,z+36, background_get_texture(bac_Wall),1,1)
d3d_draw_block(x,y-32,z+36, x-16,y+32,z+48, background_get_texture(bac_Wall),1,1)
}

thats the draw code, and in create it says z=0.

here is a exe. file:
http://host-a.net/Maverick/Undead2.exe
Back to top Go down
View user profile
Phantom107
Admin
avatar

Posts : 206
Join date : 2008-01-03
Location : The Netherlands

PostSubject: Re: Parts of objects disapearing   Mon Feb 18, 2008 11:24 pm

1) Why aren't you using my speed techniques? The performance is extremely bad.
2) There are no disappearing parts. Your code will draw all the faces to the inside, so when culling comes into action only the faces facing the inner part of the block will be drawn. You can flip the faces by swapping the y1 and y2 arguments for example.
3) You got the textures all wrong too; the texture width and height should be both in the power of 2. For example: 128x128, 256x256, 1024x1024. You can mix 'em too: 128x512, 256x128, 32x1024
Back to top Go down
View user profile http://phantom107.actieforum.com
Guilty Sparks
Heavy Poster
avatar

Posts : 154
Join date : 2008-01-05
Location : USA East Coast

PostSubject: Re: Parts of objects disapearing   Tue Feb 19, 2008 12:27 am

lol phantom, sorry for not using your speed thing... Thanks for the y- and y+ thing, that worked
Back to top Go down
View user profile
Phantom107
Admin
avatar

Posts : 206
Join date : 2008-01-03
Location : The Netherlands

PostSubject: Re: Parts of objects disapearing   Tue Feb 19, 2008 12:40 am

Well you don't need to apologize or anything, but for the sake of your own game, use them.
Speed Techniques = Better Performance = Better Game
Back to top Go down
View user profile http://phantom107.actieforum.com
Sponsored content




PostSubject: Re: Parts of objects disapearing   

Back to top Go down
 
Parts of objects disapearing
Back to top 
Page 1 of 1
 Similar topics
-
» How Click on Dynamic Objects at Dynamic Positions in Selenium using for loop
» How Selenium identify OBIEE objects(Flex Control)
» program to provide total number of objects present / available on the page
» Feeling sorry for inanimate objects?
» Calling application's js file inside selenium

Permissions in this forum:You cannot reply to topics in this forum
Phantom107 Forum :: Questions and Answers-
Jump to: