material

Enabling materials and textures for OGre 3D model in jmonkeyengine?

不想你离开。 提交于 2019-12-11 14:08:00
问题 I downloaded models from WorldForge and I can introduce the mesh of a goblin to my scene but the texture and material won't render: I use eclipse and the added files look like this: The way I add the goblin in the code is this Spatial model3 = assetManager.loadModel("objects/creatures/goblin/goblin.mesh.xml"); model3.setLocalTranslation(-30.0f, 4.5f, 0.0f); rootNode.attachChild(model3); Can you help me how I improve the goblin? There are several textures and materials definition in the files

Styling BottomNavigation in React.js Material-UI

隐身守侯 提交于 2019-12-11 09:07:32
问题 How do I change the color of the icon and text of the selected link (Home in this example) to red and the color of the icon and text of the inactive links (Course and Authors in this example) to green? The docs are very thin. class MyBottomNavigation extends Component { render() { return ( <Paper zDepth={1}> <BottomNavigation selectedIndex={this.state.selectedIndex}> <BottomNavigationItem label="Home" icon={recentsIcon} /> <BottomNavigationItem label="Course" icon={favoritesIcon} />

how do you get collision detection on different materials within an scn node

房东的猫 提交于 2019-12-11 05:33:27
问题 I'm trying to get collision detection between different materials within an scn node. I have a cube with 6 different materials/ colors and balls coming at the cube. I'd like to detect same and different colored collisions but don't know how to apply different categories to each material. import UIKit import SceneKit class GameViewController: UIViewController, SCNPhysicsContactDelegate { Can I create categories to assign to different sides of the cube later? let ballCategory = 0 let

Close button of MatDiaLog in Angular get error Cannot read property 'close' of null

别说谁变了你拦得住时间么 提交于 2019-12-11 02:25:44
问题 I want to create a component with multiple content project in angular 6. It might be This is the content I passed from the app.component.html : <popup> <button buttonTrigger mat-button><span >Open the popup!</span></button> <my-dialog-content content></my-dialog-content> </popup> This is the content of the popup.component.html <div (click)="openDialog()"><ng-content select="[buttonTrigger]" ></ng-content></div> <ng-template #dialogContent> <ng-content select="[content]"></ng-content> </ng

Angular 4/5 material raised button with input file

主宰稳场 提交于 2019-12-10 20:55:22
问题 I am working on a angular application, currently to upload a file I am using this : <label class="btn btn-default"> <input type="file" (change)="selectFile($event)"> </label> <button class="btn btn-success" [disabled]="!selectedFiles" (click)="upload()">Upload</button> with methods on my .ts file, it is working well. I want to upgrade this to material angular components raised button like that right now : <button mat-raised-button> <input type="file" (change)="selectFile($event)"> </button>

Angular Material ng-tns class changes margin of items in my table, can use CSS to change the margin but then another variant of ng-tns is applied?

帅比萌擦擦* 提交于 2019-12-10 19:12:39
问题 I have an angular project where I'm using Angular Material and material table. It seems that all the text in my table has the 10px margin top and bottom applied due to a class named something like: .ng-tns-c5-1 or .ng-tns-c6-1 etc. I can't find a way to change those margins without inspecting element, finding that class and then using CSS to change that margin. But after some changes to other elements on the app, the .ng-tns-c6-1 (for example) is changed to something like: .ng-tns-c4-0 and

Angular Material Dialog not closing after navigation

假如想象 提交于 2019-12-10 17:22:04
问题 I'm working on an application that shows an overview of entities in a datatable. Every entity has linked entities that are shown as 'xxx linked entities' in a column. When the user clicks on the value of that column, a material dialog opens showing the list of the linked entities. These are all links to other entities. Upon clicking one of these links, the correct page of the entity is shown, but the dialog doesn't close. I does close when using the back button. I am using the

Android Material Design Text Field Templates

时光怂恿深爱的人放手 提交于 2019-12-10 13:53:47
问题 I am trying to design a layout that I found on Googles Material Design website, this one in particular. Does anybody have any pointers on how to make this layout? Or know of any sample layout code? I can't seem to find any relating to this layout. 来源: https://stackoverflow.com/questions/30559628/android-material-design-text-field-templates

Android material design replicate toolbar breadcrumbs example

怎甘沉沦 提交于 2019-12-10 12:47:15
问题 I'm trying to replicate the breadcrumbs example: I've gotten as far as adding TextViews to the Toolbar but can't fully replicate the font/size/color of the Toolbar's style and can't get the breadcrumbs to float off the screen to the left. 回答1: You will need to create your own Breadcrumb View and add it in your Toolbar. Maybe based on the now deprecated FragmentBreadCrumbs view. To get the breadcrumbs to float off the screen you can use negative margin. 来源: https://stackoverflow.com/questions

Angular2 material sidenav - changing rtl/ltr direction dynamically

时间秒杀一切 提交于 2019-12-10 10:46:44
问题 I'm trying to change my layout dynamically according to users' language selection and switch from LTR to RTL on the fly. I'm using Angular 2 rc6, material 2.0.0-alpha.9-3 It looks like when the page is loaded, it works perfectly with either rtl or ltr. However, when it's changed dynamically from within the app (see plunker), the direction changes but the generated element md-sidenav-content has a miscalculated margin-right and margin-left. Digging further, I managed to see that the _dir