Jump to content

DanielMan

Members
  • Posts

    18
  • Joined

  • Last visited

About DanielMan

  • Birthday 08/19/1984

Profile Information

  • Gender
    Male
  • Location
    Austria LOWG/LOGW
  • Interests
    FlightSimulation, Badminton, Scenery Design

DanielMan's Achievements

Newbie

Newbie (1/14)

3

Reputation

  1. This nice Aquila A210 & A211G is coming out December 2015 ........ Aquila A210 with steam gauges Aquila A211G with G500 ....... look at http://picus-x.com/ Cheers Daniel
  2. That sounds political correct ..... Thank you for the information, I had never searched a problem related to the previous loaded plane!
  3. Thanks that ist working now with the red box, just need to make it with my png. That I will try tomorow! Hihi, the fun with GL is less in the moment but should become more
  4. Thanks for that Ben! I need to try the FBO texture. By the way the masking is working well, just the rotation not. Cheers Daniel
  5. Hi Jim and Ben No success till now :-( . My code is: self.ATT_draw = function(heading, pitch, roll) local att_width = 256 local att_hight = 340 local width = 320 local hight = 1200 --local posX = self.DispLeft - att_width/2 + 263 -- Panelmaker Value --local posY = self.DispBottom - att_hight/2 + self.MiddleY local pitchpx = 61 -- px per 10deg --gfx.setMaskingTape( posX,posY, att_width,att_hight ) -- Roll and Pitch Indication gfx.useTexture(texture_el_horizon_1) gl.PushMatrix() --gfx.setState(0,0,0,1,1,0,0) gl.Translate(-width/2, -hight/2, 0) gl.Rotate(roll, 0,0,1) --gl.Translate(width/2, hight/2, 0) gl.Begin('QUADS'); gl.TexCoord( 0, 0 ); gl.Vertex( 0, 0, 0 ); gl.TexCoord( 0, 1.0 ); gl.Vertex( 0, hight, 0 ); gl.TexCoord( 1.0, 1.0 ); gl.Vertex( width, hight, 0 ); gl.TexCoord( 1.0, 0 ); gl.Vertex( width, 0, 0 ); gl.End(); gl.PopMatrix() --gfx.clearMaskingTape() endThe MaskingTape is commented out just to see what my texture is doing around the screen. Cheers Daniel
  6. Thank you liser, for this explenation! The translation is already clear for me. When I make a translation: gl.Translate(-width/2, -hight/2, 0), the center of the texture is at [0,0,0]. I thought when I make a rotation around z-axis, it would turn around the center of the texture. When I translate it back, it should be on the place I like to have it, or just make a further translation to somewhere. But whatever I do, the rotate function allways rotate around to bottom left corner of my texture. Is there an other function available to rotate around a specific point? Cheers Daniel
  7. Hallo Together I'd like to start this topic for all those, who have question about OpenGL programming like I have I try to make a EFIS completely independed of the panelmaker. My actual problem is, I like to rotate a texture. Therefore I use "gl.rotate(angle, 0,0,1)" to rotate around the z-axis. It is rotating around z but allways on the left bottom corner of the texture. I thought when I translate the texture with it's center to the [0,0,0] it will rotate around this coordinate, but it's allways rotating around the bottom left corner of the texture. I tried some things I found in the net about this topic like gl.MatrixMode('TEXTURE') and gl.MatrixMode('MODELVIEW'), but with this XP is getting a little bit crazy! How it is working to rotate around the texture center? Thanks in advance Cheers Daniel
  8. Absolutely agree!!! On VATSIM the squawk code 7500: Hijacking is absolutly prohibited, due to piety reasons!! Think about it ......... The world need no more tragedy and I think it's not necessary to simulate them!
  9. Thank you Jim that is right. I just found the second problem: "gfx.useTexture(texture_ATT_OFF, 0)" This optional Value: 0 was the second problem. Now I just use "gfx.useTexture(texture_ATT_OFF)" and it is working. A few more hours (maybe hundrets) and I will get this gfx and gl stuff in my brain Thank you for your respond!! Cheers Daniel
  10. This problem I have solved now. There was another function influencing, I forgot this test function, but now I have deleted. Another thing is comming up now. I tried to show a texture, but I get only a white Area. texture_ATT_OFF = gfx.newTexture()texture_ATT_OFF = gfx.loadPng(acf.getFolder().."cockpit/generic/PFD/AritficialHorizon/ATT_OFF.png")-- This is Part of my PFD Classself.ATT_Enable = function(flag) local posX = self.DispLeft + 263/2 local posY = self.DispBottom + 110 if flag == false or flag == 0 then gfx.useTexture(texture_ATT_OFF, 0 ) gfx.drawTexturedQuad(posX, posY, 256,300 ) endendPlease help! Cheers Daniel
  11. Hallo I like to mask all EFIS components black. Therefore I tried some code I found on Ben's examples, but I don't get it to work. I try to understand this gl and gfx stuff but it's harder than I thought it is PFD and ND on the Screenshot should become black. function OnDraw_Gauges() OnDraw_Gauges_3D()endfunction OnDraw_Gauges_3D() makeDispDark()endfunction makeDispDark() gfx.setState( 0, --fog 0, --tex units 0, --lighting 1, --alpha test 1, --alpha blend 0, --depth test 0 --depth write ); gfx.setColor(0,0,0,1) gfx.drawQuad( 0, 0, 2048, 2048 )endI'm grateful for any hint! Cheers Daniel
  12. Hi, I think, it would be necessary to store all dataref values in a seperate file save1.txt and load all values on situation load. But that might be many rows of code to get that working. I don't know how many custom datarefs are used on the 737, but I think it will be some (10^x) for all this very nice details. Cheers Daniel
  13. Hello Together I have built a github repo with some samples of Lua Classes I have made. For the moment there are mainly electric componentes like Battery, TRU, BUS System in it. The advantage is that you can make the Electric System you need for a more complex aircraft with all the consumers you like to consume some power. Have a look and take what you like or use it just for an example to make your own classes: https://github.com/danielmandlez/LuaClasses Regards Daniel
×
×
  • Create New...