Skip to content

Instantly share code, notes, and snippets.

// dear imgui: standalone example application for GLFW + OpenGL2, using legacy fixed pipeline
// If you are new to dear imgui, see examples/README.txt and documentation at the top of imgui.cpp.
// (GLFW is a cross-platform general purpose library for handling windows, inputs, OpenGL/Vulkan/Metal graphics context creation, etc.)
// **DO NOT USE THIS CODE IF YOUR CODE/ENGINE IS USING MODERN OPENGL (SHADERS, VBO, VAO, etc.)**
// **Prefer using the code in the example_glfw_opengl2/ folder**
// See imgui_impl_glfw.cpp for details.
#define NOMINMAX
// dear imgui: standalone example application for GLFW + OpenGL2, using legacy fixed pipeline
// If you are new to dear imgui, see examples/README.txt and documentation at the top of imgui.cpp.
// (GLFW is a cross-platform general purpose library for handling windows, inputs, OpenGL/Vulkan/Metal graphics context creation, etc.)
// **DO NOT USE THIS CODE IF YOUR CODE/ENGINE IS USING MODERN OPENGL (SHADERS, VBO, VAO, etc.)**
// **Prefer using the code in the example_glfw_opengl2/ folder**
// See imgui_impl_glfw.cpp for details.
#define NOMINMAX
cmake_minimum_required(VERSION 3.1)
project(imguiSample CXX)
enable_language(CXX)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DVK_PROTOTYPES")
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DVK_PROTOTYPES")
## -*- coding: utf-8 -*-
#model/viewの基本
import sys
from PySide2 import QtCore, QtWidgets
class testView(QtWidgets.QDialog):
def __init__(self, parent=None):
def hoge():
print("fuga!")
Sdf.Find('anon:000000007B132AC0:root-session.usda')
#usda 1.0
(
subLayers = [
@anon:000000007B132980@,
@anon:000000007B132840@,
@anon:000000007B132700@,
@anon:000000007B1325C0@
]
)
title
Hydraとは?

去年のHoudini18以降、日本でも「USD」や「Hydra」、「Hydraレンダーデリゲート」 という言葉が聞かれるようになったのではないでしょうか。

ここまで、何回かにわけてUSDについて説明してきましたが、 もう1つUSDとともによく語られる「Hydra」は いまいちなにものかわからない人も多いのではないのでしょうか。

# -*- coding: utf-8 -*-
import sys
import math
from PySide2.QtWidgets import (QWidget,
QMainWindow,
QPushButton,
QDialog,
QApplication,
#define NOMINMAX
#include <iostream>
#include <vector>
#include <pxr/base/gf/vec3f.h>
#include <pxr/base/tf/token.h>
#include <pxr/base/vt/array.h>
#include <pxr/base/vt/value.h>
#include <pxr/usd/sdf/path.h>
void
main() {
auto stage = UsdStage::CreateInMemory();
ClassTest* hoge = new ClassTest("D:/work/data_sample/xbot.fbx");
FbxArray<FbxMesh*>* meshArray = new FbxArray<FbxMesh*>();
hoge->getAllMesh(*meshArray);
// 取得してきた情報でPrimを作る