It is currently Fri Aug 23, 2019 12:29 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Panoramview with OpenGl?
PostPosted: Wed Aug 14, 2019 10:14 am 
Offline
Addict
Addict
User avatar

Joined: Wed Apr 30, 2003 8:15 am
Posts: 982
Location: Germany
Hello, folks,

currently I use OGRE to view 180 degree panoramas and 360 VR images.
Unfortunately, loading larger files is very slow and OGRE can't handle umlauts and long file names.

Is there a possibility to create the following code via OpenGl?

Code:
  [..]
  If CreateMaterial(0, LoadTexture(0,file$))
    DisableMaterialLighting(0,#True)
    MaterialFilteringMode(0,#PB_Material_Trilinear)
    RotateMaterial(0,180,#PB_Material_Fixed)
   
    If IsCamera(0) And IsEntity(0)
      RotateEntity(0,0,0,0, #PB_Absolute)
      MoveCamera(0,0,0,0, #PB_Absolute  )
      RotateCamera(0,0,0,0, #PB_Absolute)
      CameraFOV(0, 90)
    EndIf
   
      If IsTexture(0)
        w = TextureWidth(0)
        h = TextureHeight(0)
      EndIf
   

    If  (g360 = 0 And CreateCylinder(0, -1, -1.5, 32, 32, 0)) Or ( g360 = 1 And CreateSphere(0, -10, 64, 64))
      CreateLight(#PB_Any, RGB(25, 25, 180), 0, 0, 0, #PB_Light_Point)
     
      If g360 = 0
        RotateCamera(0,0,0,180, #PB_Absolute)
      Else
        RotateCamera(0,0,0,0, #PB_Absolute)
      EndIf
     
      If CreateEntity(0,MeshID(0),MaterialID(0))
        Result = #True
      EndIf
    EndIf
  EndIf


I'm also thinking about using the webgadget, because viewing panoramas runs very well with Javascript in the browser.

Ciao Dige

_________________
"Daddy, I'll run faster, then it is not so far..."


Top
 Profile  
Reply with quote  
 Post subject: Re: Panoramview with OpenGl?
PostPosted: Thu Aug 22, 2019 8:01 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Tue Sep 22, 2009 10:41 pm
Posts: 426
OpenGL can do it certainly but native statement too normally do it.
Code:
CameraFOV(CamerAngle.D)


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


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

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye