I just downloaded Mr. Doob's three.js project. In the examples folder, anything that doesn't use a model or texture will load up properly. The ones with models or textures show up blank. I don't understand why. I can webgl examples with models and textures to work on the three.js website. Can anybody help, I am stumped...
You need to run chrome using the --allow-file-access-from-files flag.
https://github.com/mrdoob/three.js/wiki/How-to-run-things-locally
Also, here's some discussions on how they're trying to solve this:
http://code.google.com/p/chromium/issues/detail?id=121406
http://code.google.com/p/chromium/issues/detail?id=47416
Related
I am looking for an example of how to use the IOS Storyboard SplitView controller with MVVMCross. I have looked at the samples in the MVVMCross playground, but these do not use the storyboard file.
Can anyone help with a pointer to a good example. All information seems to be around 2013 and the examples are too old for the current version of the framework.
Thanks in advance.
The Playground sample in the main repository has some good samples on using Storyboards.
https://github.com/MvvmCross/MvvmCross/blob/develop/TestProjects/Playground/Playground.iOS/Views/ChildView.cs#L10
Documentation is also available on the website: https://www.mvvmcross.com/documentation/platform/ios-user-interfaces-approaches#storyboards
I'm new to libgdx and was looking for a solution to play video for the game book I'm creating. After some research I find this article:
https://gamedev.stackexchange.com/questions/30607/play-videos-with-libgdx
However, being naive I do not know where does the splash screen and xml ui code go? Do we implement it in CORE project or android project ?
And if someone can also share the event calling mechanism between CORE and android, that would also really help.
Thanks a lot !
Your game "Class" files go to the Core project (You write your code once for all platforms).
All your asset files (graphics, sound...) go to Android project > assets . (The desktop project has a link to that assets folder, so you only need to store the assets once).
If you are new to Libgdx, I recommend you to follow basic tutorials like :
https://github.com/libgdx/libgdx/wiki/A-simple-game
http://www.toxsickproductions.com/libgdx/
http://www.gamefromscratch.com/page/LibGDX-Tutorial-series.aspx
Hope it helps.
There's this weird thing that when I try to execute the swf file independently, it can attach the camera then remove it and makes the video freeze (well that's the desired result)
but
when I tried to embed it into an html then deployed in a local server, when I am dettaching the camera via video.attachCamera(null) it doesn't work and the camera is still there and I can still see myself moving.
Why? and How can I fix this?
Finally fount the issue. It's because of the framework I used. It's robotlegs MVC maybe there's something wrong with my code or it's a bug of the framework itself. Changed my code not to use robotlegs.
I got a little Question.
I'm working on an App, and for that I have to download an HTML File with the including CSS and Images.
And Yeah, there's an API for that (ASIHTTPRequest), but I wan't to publish my App to the App Store and I don't want to use 3rd party API's.
And Parsing the HTML code is a bit hard :(
And It would also work for me, if I could download the whole path of a URL.
For example:
I have this URL: http://example.org/smthg/.
At this path I have:
-index.html
-logo.png
-style.css
And I want to download all this files AUTOMATICALLY, and not every single file.
But I don't think, that you can find out which files are on the server, right? (without BruteForce).
I hope you know what I mean :)
You can use a UIWebView to download the content at the location and hold on to the WebView. You could also use NSURLConnection to download content at a URL if you want to save it unformatted and you have the URL's to the resources.
There's nothing wrong with using 3rd party frameworks, as long as they're good quality frameworks and you use them right. ; ) Apple just gives you the starting blocks to make an app, after all, and using open-source code can really speed up your project.
With that said, ASIHTTPRequest is a bit outdated and not well maintained. Instead, I'd recommend AFNetworking, which supports asynchronous downloads, background downloads, and blocks. See https://github.com/AFNetworking/AFNetworking .
Regarding your specific issue on downloading certain files, however, you might try creating a plist(s) on the server (if its yours that is, or else, bundled within the app perhaps) that would list all of the needed files and their download locations.
However, the issue you're liking going to quickly face- even if your app has all needed files downloaded, it still has to understand what to do with them. If its just HTML content, styles, etc, perhaps you can display it in a UIWebView ? However, be sure that your app is adding some useful functionality besides just being a web browser... (unless, of course, you're making an enhanced web browser... ;)
Good luck!
I work with a lot of cshtml files in VS 2012, and a constant irritation is not being able to see the path or namespace of the file I'm working on (barring mouse hover every time).
I've googled quite a bit, haven't found any answer, and no VS Extension seems to do it either. Here's a screenshot of what exactly I mean (several index.cshtml, no easy way of distinguishing):
Either in a separate toolbar underneath like regular CS code files or as the tab title itself would be fine. Does anyone know of a tool or setting for this?