dev.gamez.lv Forum Index dev.gamez.lv
Latvian Game Developers Community
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups 

OpenGl picking

 
dev.gamez.lv Forum Index -> OpenGL
View previous topic :: View next topic  
Author Message
jr200



Joined: 19 Apr 2008
Posts: 6

PostPosted: Wed Jun 18, 2008 2:41 pm    Post subject: OpenGl picking

Es mēģinu uztaisīt opengl picking jeb citiem vārdiem sakot to kad iezīmē objektu kad uz tā uzpiež ar peli. Gandrīz uztaisīju, bet ir viena maza aizķeršanās. Pirmo reizi kad uzpiež uz objekta viss ir kārtībā, bet otreiz kad uzpiež parādās errors. Tas izskatās apmēram šāds.
Back to top
View user's profile
jr200



Joined: 19 Apr 2008
Posts: 6

PostPosted: Wed Jun 18, 2008 4:26 pm    Post subject: Re: OpenGl picking

Beidzot atklāju kas pa vainu. Saistība ir ar fontiem. Sākumā rāda visu normāli,bet kā uzspiež otro reizi uz objektiem kaut kas nojūdzās ar fontiem. Ja fontiem uztaisa mazu texturi viss aiziet, bet kā lielāku tad sākās šie gļuki. Cerams kad no manis teiktā kāds kaut ko sapratīs. Varbūt vajadzētu ielikt iekša citus bilžu loaderus.
Back to top
View user's profile
bubu
Indago Uzvarētājs
Indago Uzvarētājs


Joined: 23 Mar 2004
Posts: 3223
Location: Riga

PostPosted: Wed Jun 18, 2008 6:12 pm    Post subject:

opengl'am diez vai ir kāds sakars ar tavas programmas krašu.
Visdrīzāk kautko nepareizi kodā uzrakstīji.
Laid programmu debugerī un skaties, kurā rindiņā viss nokarās. Tad arī pārbaudi, kas tur tieši par funkciju izsaucās, vai kādi mainīgie tiek aiztikti.
Back to top
View user's profile Send e-mail
snake5
Indago dalībnieks
Indago dalībnieks


Joined: 27 Jun 2007
Posts: 2590

PostPosted: Wed Jun 18, 2008 7:19 pm    Post subject: Re: OpenGl picking

jr200 wrote:
...citiem vārdiem sakot to kad iezīmē objektu kad uz tā uzpiež ar peli.


Kas ir objekts?
_________________
"There are two choices here: "looks good" and "realism"." -- Paul Nettle
Back to top
View user's profile Visit poster's website
Storm



Joined: 11 Apr 2006
Posts: 742

PostPosted: Wed Jun 18, 2008 7:56 pm    Post subject:

Microsoft Word?! You gotta be kidding me Laughing
_________________
Izraadaas ka dazu dev.gamez.lv lietotaaju absurdaa ignorance meedz eksisteet arii augstaakas paakaapees : http://www.gamedev.net/community/forums/topic.asp?topic_id=411552
Back to top
View user's profile
snake5
Indago dalībnieks
Indago dalībnieks


Joined: 27 Jun 2007
Posts: 2590

PostPosted: Wed Jun 18, 2008 8:36 pm    Post subject: Re: OpenGl picking

jr200 wrote:
Tas izskatās apmēram šāds.

_________________
"There are two choices here: "looks good" and "realism"." -- Paul Nettle
Back to top
View user's profile Visit poster's website
Display posts from previous:   
dev.gamez.lv Forum Index -> OpenGL All times are GMT + 2 Hours
Page 1 of 1

 
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, 2005 phpBB Group