Giter Site home page Giter Site logo

Full Class Documentation about atf HOT 10 CLOSED

sonywws avatar sonywws commented on June 2, 2024
Full Class Documentation

from atf.

Comments (10)

Ron2 avatar Ron2 commented on June 2, 2024

Hi Len,

For our OpenGL support, I recommend taking a look at the Model Viewer sample application. The documentation for the Model Viewer is probably the best we have that covers OpenGL.
https://github.com/SonyWWS/ATF/wiki/Model-Viewer-Programming-Discussion

It seems that searching wikis in GitHub doesn't work at the moment, at least for this repository. So, that would make finding the right wiki page quite difficult. :-( I've filed a request for help with GitHub.

--Ron

from atf.

vorptronica avatar vorptronica commented on June 2, 2024

Thanks Ron.
That page looks like it's got some good info.
On a related note, the ModelViewer sample crashes whenever I actually try and load a model (even the cube.atgi from UnitTestAtgi\Data). It's the only Sample that doesn't work out of the box correctly as far as I can tell. The only warning is a version mismatch warning (that I don't fully understand) on the Tao GL dll.
Any thoughts?
Thanks!

-Len

from atf.

Ron2 avatar Ron2 commented on June 2, 2024

Bummer, sorry, Len. I downloaded the zip file from GitHub, compiled, and did some tests. Weirdly, the first time I tried loading bike.atgi or cube.atgi, the app shut down! But after turning on break-on-exceptions in Visual Studio, I can't reproduce the crash. Model Viewer hasn't given us any problems like this in the past, so I don't know what is going on. Can you get a call stack or an exception message?

--Ron

from atf.

Ron2 avatar Ron2 commented on June 2, 2024

A GitHub help person got back to me:
"Currently, wikis are not included in GitHub's search functionality. I've added that to our internal feature request list for the team to see, though. We're always looking for ways to improve the GitHub experience."

from atf.

julianneh avatar julianneh commented on June 2, 2024

Len, what version of Visual Studio are you using? We did actually see an intermittent issue with ModelViewer and Tao about 18 months ago on VS2012. We changed some build settings and were never able to reproduce it again, but maybe your system configuration is different from ours.

-Julianne

from atf.

vorptronica avatar vorptronica commented on June 2, 2024

Thanks for the assistance!

I'm building with VS 2012 (though I haven't updated the project version).

Here's the exception upon model load:

A first chance exception of type 'System.Xml.XmlException' occurred in
System.Xml.dll
'ModelViewer.exe' (Managed (v4.0.30319)): Loaded
'C:\Users\lwhite\Desktop_Projects\Coding\ATF-master\bin\Debug.vs2010\Tao.DevIl.dll'
The program '[12680] ModelViewer.exe: Managed (v4.0.30319)' has exited with
code 1073741855 (0x4000001f).

When building, this is the only warning that comes up:

c:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5):
warning MSB3247: Found conflicts between different versions of the same
dependent assembly.
27> ModelViewer.vs2010 ->
C:\Users\lwhite\Desktop_Projects\Coding\ATF-master\bin\Debug.vs2010\ModelViewer.exe
29> WpfApp.vs2010 ->
C:\Users\lwhite\Desktop_Projects\Coding\ATF-master\bin\Debug.vs2010\WpfApp.exe

On Tue, May 6, 2014 at 7:47 PM, julianneh [email protected] wrote:

Len, what version of Visual Studio are you using? We did actually see an
intermittent issue with ModelViewer and Tao about 18 months ago on VS2012.
We changed some build settings and were never able to reproduce it again,
but maybe your system configuration is different from ours.

  • Julianne


Reply to this email directly or view it on GitHubhttps://github.com//issues/9#issuecomment-42384220
.

from atf.

julianneh avatar julianneh commented on June 2, 2024

Thanks for the details Len. I've managed to reproduce this again. Could you take a look at your ModelViewer project settings and make sure "Enable the Visual Studio hosting process" is unchecked? We turned that off the last time we saw this issue and that seemed to prevent the crash. If you're still seeing it, try turning on "Enable native code debugging". That one seems to prevent the crash even if VS hosting is enabled - which makes this very difficult to track down ;)

from atf.

Ron2 avatar Ron2 commented on June 2, 2024

One of us (Shen) was able to reproduce the problem on his personal computer. The corruption you're seeing, Lee, is likely from a call to Il.ilGetString() in the method GetSupportedExtensions() in the class DevilImageLoader. It looks like we can simply remove the usage of DevilImageLoader, which makes use of an old Tao OpenGL library to load various kinds of images. That Tao OpenGL library has given us trouble before, as Julianne reminded me. If someone asks for it, we could try updating the Tao OpenGL dlls that we use. It looks like that project has migrated to: http://sourceforge.net/projects/taoframework/

Anyway, thank you, Lee, for bringing this problem to our attention. Hopefully it's fixed for you now. This was a frustrating bug that only causes problems for some computers.

from atf.

vorptronica avatar vorptronica commented on June 2, 2024

Thanks for the fix.
Interestingly, on my Win7 machine over here, I managed to fix the problem by switching the "Platform target" setting in the project Build properties to "Any CPU".
This setting was defaulting to "x86". I assume that's how it is set in the project since I don't remember changing this setting until now.
So....architecture mismatch?

from atf.

Ron2 avatar Ron2 commented on June 2, 2024

I don't think it was a simple architecture mismatch. Previously, we found that turning off the "Enable the Visual Studio hosting process" in the project settings fixed a similar memory corruption bug with DevilImageLoader which was an odd random thing. At the time, VS2012 was new, and we thought maybe there was some weird problem with VS2012 that only affected this Tao OpenGL library.

from atf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.