Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Krm · Jul 23, 2011 at 07:45 PM · opengltool

how can i read the openGL code which is converted from Unity 3d

As it is known that Unity3D is converted to OpenGL which in return can be read by GPU..

My question is this,

Is there any tool or program that can read this OpenGL code.

Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image BerggreenDK · Jul 23, 2011 at 07:52 PM 0
Share

may I ask why?

avatar image Krm · Jul 23, 2011 at 07:58 PM 0
Share

for comparison purpose, between unity3D and webGL

2 Replies

· Add your reply
  • Sort: 
avatar image
2

Answer by Graham-Dunnett · Jul 23, 2011 at 08:42 PM

Unity does not convert anything to OpenGL. The run-time on Mac and the mobile devices will call into the OpenGL API. If you have a tool that can intercept these calls then you can find out what Unity is doing. This will be a very specialised task.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
1

Answer by Bunny83 · Jul 23, 2011 at 08:42 PM

There is nothing converted. OpenGL is a Open Graphics Library, it's "just" a programming interface that enables you to use the grapics card's functions. On Windows machines Unity uses DirectX in the first place. On mobile platforms OpenGL ES which is just a small subset of OpenGL. WebGL is based on OpenGL ES but Unity don't use or support WebGL.

I don't see what you want to compare? Even the interfaces work differently. Comparing the function calls of a random WebGL application with those executed by Unity is quite useless. It's like comparing the opcodes from MS Word with those from Crysis. Well i suggest they will be differently.

You can of course hook into the OpenGL driver itself by a wrapper dll to do some crazy stuff or gather general statistics, but comparing them with something totally different is still useless.

Maybe you can go a bit more in detail what's your actual target, what you want to achieve.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Krm · Jul 23, 2011 at 09:05 PM 0
Share

thanks a lot for a useful advises.

honestly, the aim of the comparison to differentiate between them in terms of speed and performance. then we can decide whether any of them can help developing a virtual life application ,like second life, to be work within the browser or not.

avatar image Bunny83 · Jul 23, 2011 at 11:03 PM 0
Share

I think it would be possible with both Unity or WebGL + JaveScript but there are always advantages / disadvantages.

In modern browsers JavaScript is also getting compiled and is not as slow as in old browsers (x10 or more). But i guess Unity have more processing power since the engine is written in native code. WebGL is just a graphics interface but the whole game / application have to be written in JavaScript.

I'm not sure because i'm not up-to-date but as far as i know WebGL is only supported by a few browsers yet. The number of browsers with a Unity webplayer might be equal to the number of users with a WebGL-ready-browser but i guess it's less painful for a user to install a little plugin in a few sec. ins$$anonymous$$d of switching to another browser ;)

Unity comes up with lots of other features beyond graphics. I$$anonymous$$O TCP networking is one of the big advantages of Unity.

$$anonymous$$y favourite thing is that it supports a solid language like C# and it's very easy to use once you're familiar with it ;)

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

A node in a childnode? 1 Answer

Updates and Asset Store not working - Unity Editor - use IE proxy settings 1 Answer

does unity support OpenGLES 3.0 on android 1 Answer

How do I get a handle for the SceneView so I can draw in it with OpenTK? 1 Answer

What graphics API does Unity's web player use? 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges