Comments (10)
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.
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.
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.
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.
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.
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.
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.
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.
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.
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)
- Saving projects with multiple files HOT 3
- Save button does not update in DomTreeEditor HOT 2
- Use other DLL in MEF, throw exception when load the assemblies. HOT 2
- Syntax Editor license question HOT 2
- Analysis of ATF source code by PVS-Studio static code analyzer HOT 2
- GlobalHistoryContext with multiple EditingContext on same DomNode HOT 7
- PropertyGrid does not update when using keyboard to select ListView item HOT 2
- Show/Hide properties on the PropertyGrid HOT 5
- <xs:all> nodes ignored by DomGen.exe HOT 2
- element minOccurs and maxOccurs are ignored by HOT 2
- Panel visiblity status is not reflected in the "Window" menu HOT 4
- Issue with Validatior/TransactionContext system HOT 1
- Redirect PropertyGrid data HOT 3
- Add "GeneratedCode" attribute to Schema class generated by DomGen
- Consider adding a strong name to DLLs. HOT 2
- DomNodeAdapter to TreeControl.Node
- Update SharpDX HOT 1
- isReadOnly parameter cannot by dynamic with defined editor HOT 3
- UnregisterMenu & Readding Menus HOT 2
- VirtualizingWrapPanel Error HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from atf.