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

problēmas ar Ortho Mode..
Goto page Previous  1, 2
 
dev.gamez.lv Forum Index -> OpenGL
View previous topic :: View next topic  
Author Message
GiGa
Indago Uzvarētājs
Indago Uzvarētājs


Joined: 25 Sep 2003
Posts: 887

PostPosted: Wed Aug 18, 2004 12:26 pm    Post subject:

Ja pareizi atceros, tad ziimeejot ar glBlendFunc(GL_DST_COLOR,GL_ZERO); uz ekraana nekas nemainiisies... jo destination buus GL_ZERO bet source buus GL_DST_COLOR jeb destination, kaa rezultaataa nekas uz ekraana nemainiisies... Bet ja arii bez blendinga neziimeejaas nekas, tad nu gan es nezinu...
_________________
Back to top
View user's profile Send e-mail
Digital-X



Joined: 11 Jan 2004
Posts: 79

PostPosted: Wed Aug 18, 2004 12:27 pm    Post subject:

un veel shis variants?
glBlendFunc(GL_ONE,GL_ONE);
_________________
Security: http://www.netsec.lv/forums/
Back to top
View user's profile
GiGa
Indago Uzvarētājs
Indago Uzvarētājs


Joined: 25 Sep 2003
Posts: 887

PostPosted: Wed Aug 18, 2004 12:30 pm    Post subject:

Nu tad gan buutu kaukam jaamainaas, (http://fly.cc.fer.hr/~unreal/theredbook/chapter07.html te ir labi par blendingu pastaastiits, ja tev vajag) bet kas attiecas uz probleemu... kaut kas mistisks...
_________________
Back to top
View user's profile Send e-mail
elvman
Indago Uzvarētājs
Indago Uzvarētājs


Joined: 09 Apr 2003
Posts: 1278
Location: Kuldiga

PostPosted: Wed Aug 18, 2004 2:44 pm    Post subject:

Tu zin? Kad tu raksti glVertex2f(n,n) tas noziimee ka Z koordinaata ir 0.
Bet tev ir - "gluPerspective(45.0f,(GLfloat)width/(GLfloat)height,0.1f,100.0f);", tatad tu zime savu Quadu pirms kameras un tapec to neredzi.
_________________
long time; /* know C */
Back to top
View user's profile Visit poster's website
Hobits
Indago organizātors


Joined: 04 Jul 2003
Posts: 491
Location: Riga

PostPosted: Wed Aug 18, 2004 2:49 pm    Post subject:

1)Aizvaac blendingu un tekstuuras, uzliec konstanstu kraasu un pameegini norendereet! Ja ziimee tad visticamaak probleema ir ar to ka tekstuura netiek nolasiita un blendings padara vissu neredzamu jo objekts ir vienaa kraasaa.
2) Pamaini glOrtho uz gluOrtho2D, ja notiek tikai 2d rendereesana tad logiskaaks ir otrais variants jo netiek izmantots zfar un znear
3) Ieliec vissu lietu starp glPushMatrix un glPopMatrix, lai buutu dross ka nekas nekur netiek paarvietots!
Back to top
View user's profile Send e-mail Visit poster's website
Digital-X



Joined: 11 Jan 2004
Posts: 79

PostPosted: Wed Aug 18, 2004 3:15 pm    Post subject:

Pameegginaashu...
p.s. jaumeeginaaju konstantu kraasu. Viss sanaaca,
_________________
Security: http://www.netsec.lv/forums/
Back to top
View user's profile
ytterbium



Joined: 19 Apr 2004
Posts: 33

PostPosted: Thu Aug 19, 2004 1:22 pm    Post subject: Auch!

Kameer aizruleju lidz lejai peles ruliitis nospraaga...gandriiz. ka ari aizmirsu ko gribeeju teikt :/
Back to top
View user's profile
Digital-X



Joined: 11 Jan 2004
Posts: 79

PostPosted: Thu Aug 19, 2004 7:18 pm    Post subject: yahoo!

Beidzot atrisinaaju probleemu Cool

Viena vieniiga rindinja izmania visu Confused Shocked

man vajadzeeja iespraust shito Very Happy
glEnable(GL_TEXTURE_2D);
_________________
Security: http://www.netsec.lv/forums/
Back to top
View user's profile
GiGa
Indago Uzvarētājs
Indago Uzvarētājs


Joined: 25 Sep 2003
Posts: 887

PostPosted: Thu Aug 19, 2004 7:51 pm    Post subject:

Laughing Laughing Laughing
_________________
Back to top
View user's profile Send e-mail
Display posts from previous:   
dev.gamez.lv Forum Index -> OpenGL All times are GMT + 2 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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