Xcode preview not working - xcode

I created a sceneKit game project in Xcode. In the art.scnassests folder there's an included 3D model and texture. I can see the texture fine but the 3D model doesn't appear in the editor. I even added my own 3D models which the editor doesn't preview. I know they are there because if I run the app the model is in the app.
I tried restarting, create a new project, installing Xcode 8.3.3 instead of using 9.2 but I still can't get a preview. I need the preview for obvious reasons and also when I try to create a particle system the preview for this dent work either. (The preview does however work for the included texture.png)

SceneKit Editor is not previewing your model because by default it doesn't have any texture set. You can assign the different channels of the texture or at least the diffuse attribute to preview your model. Thanks

Related

Use RealityKit ARView on macOS

I'm trying to use an ARView in a macOS-only project. I can load a scene (tested with a Reality file from Reality Composer), and it renders fine.
But how do I control the camera with the mouse?
An example of this is Reality Composer, Reality Converter, and previewing a Reality file in Xcode where you can drag anywhere on the view and the camera pans, rotates, etc. In SceneKit the equivalent is allowsCameraControl
There's no cameraMode on the macOS ARView, probably because it only supports nonAR anyway.
I tried adding a PerspectiveCamera hoping it would unlock interactivity, but no luck.
I guess I could just implement all the gestures myself, but that's a lot of work, and Apple seems to be using a standard way to interact with the scene with a mouse - and also a standard grid, which I'd love to use, too.
I'm using macOS 12 beta 1, but it shouldn't make a big difference since ARView requires macOS 10.15
Neither in macOS nor in iOS, RealityKit has a property similar to SceneKit's .allowsCameraControl. However, using this code as a starting point, you can create your own camera control in RealityKit.
This post can also be helpful for you.

Xamarin - how to center a launch screen image (iOS)?

I'm using Xamarin for Visual Studio, and am getting frustrated trying to do what I would think should be a very simple thing: creating a launch (splash) screen for iOS, that has a single image that is centered on the screen (vertically and horizontally centered).
I'm creating it the recommended way, using a storyboard (other methods, like using an assets catalog, are considered deprecated as of iOS 9). In the storyboard, I have a View Controller, which contains a View, which contains an Image View. In the Properties pane, I've tried messing with the Mode (in Widget tab), and I've tried playing around with contstraints - which I think might be the key, but it is difficult to understand how it all works together.
You need to add the Splash screen in the applications properties (Launch Images). You need to create the image and upload it via that section. I couldn't find anything saying that the use of Asset catalogues are depreciated.

OpenGL View using Cocos2d inside a Mac Desktop Application

I'm just getting started in development for a mac desktop app that will aid me in dealing with rigging a 2-D character in cocos2d.
The layout for what I'm working on is in the image here:
In the big grey rectangle to the right, I'd like to create an active cocos2d scene that I can interact with using the standard mac app GUI on the left. For example, when the user selects a file using the LOAD CHARACTER IMAGE... button, I want the scene to add the image as a CCSprite on the right. I want them to set the anchorPoint by clicking an anchor point button, and then clicking on the sprite, etc...
My Question is: How do I start implementing the scene within the window? How do I add the cocos2d framework to my project?
I'm fairly comfortable working strictly within cocos2d, but I need to get it to interact with a standard desktop GUI.
What steps do I take to get the scene in the window?
******EDIT******
I'm editing this to further clarify my questions that I need answered.
1. How do I add the cocos2d files to a project without using one of the templates?
2. How do I get a cocos2d scene to show up inside the grey rectangle of my .xib? (OpenGLView?)

Core Animation in Interface Builder

So, I'm working on a mac app, and I'm trying to add a shadow via core animation to a button. I used the effects pane in Interface Builder and set the shadow and color, and made sure to check the "Want's Core Animation Layer" checkbox. But when simulating the interface or building the app, there is no shadow. I would appreciate it if someone knows what's wrong.
Thanks!
Edit: I've tried several things, including cleaning the project and turning on and off core animation. Nothing fixes it.
I fixed it. I ended up going through every interface element in the tab view and turned off core animation on each one (I had some strange transparency stuff going on). Then I went back to add the shadow, and it worked fine.

Using MonoTouch 5, my images are not displayed in Interface builder

I'm using MonoTouch 5 and I'm trying to use images from my MonoTouch project in Interface Builder. The images are available in IB and I'm able to drag them on the view, everything looks good in IB. When I run my monotouch project, I don't see any images.
I think the issue might be that when you make the reference to the image in IB, it will save that reference as 'myImage.png' even if the image you have is stored in 'Images/myImage.png' so when it comes to find the image in the root of your application, it is not there.
It might be worth filing this as a bug to see what we can do to get this fixed. Does moving your images from a folder into the root solve this issue?
ChrisNTR

Resources