当前位置: 首页 > news >正文

wordpress博客页面seo怎么搞

wordpress博客页面,seo怎么搞,网站开发前后端工具组合,上海企业信息登记号查询DreamTexture.js 是面向 three.js 开发者的 3D 模型纹理自动生成与设置开发包,可以为 webGL 应用增加 3D 模型的快速自动纹理化能力。 图一为原始模型, 图二图三为贴图后的模型。提示词: city, Realistic , cinematic , Front view ,Game scene graph 1、…

DreamTexture.js 是面向 three.js 开发者的 3D 模型纹理自动生成与设置开发包,可以为 webGL 应用增加 3D 模型的快速自动纹理化能力。

aa3

图一为原始模型, 图二图三为贴图后的模型。提示词:

city, Realistic , cinematic , Front view ,Game scene graph

1、DreamTexture.js 开发包内容

DreamTexture.js 基于 Three.js 和稳定扩散(stable diffusion) AI 模型开发,用于实现 3D 模型的自动纹理化,当然版本 V1.0,主要文件及目录组织结构如下:

开发包文件说明
dream-texture.cjscjs 格式库文件
dream-texture.esmesm 格式库文件
dream-texture.umdumd 格式库文件
stable-diffusion-guide.md用于 DreamTexture.js 的稳定扩散服务安装指南
LICENSE.md开发包许可协议文件
example/DreamTexture.js 使用示例目录

2、DreamTexture.js 开发包快速上手

以 ESM 库为例介绍如何使用 DreamTexture.js 开发包为 Three.js 应用增加 3D 模型的自动化纹理能力。

首先参考开发包中的稳定扩散服务安装指南部署自己的 stable diffusion api 服务,支持 windows 和 Linux。

接下来安装 three.js 开发环境,安装完成后需要引入 DreamTexture.js 库文件,以 ESM 库为例,引入代码如下:

import * as THREE from 'three';
import DreamTexture from './dream-texture.esm.min';

现在创建一个场景,在场景中导入 GLTF 模型 ,并可以适当的旋转或移动模型:

//将模型导入到场景
const gltfLoader = new THREE.GLTFLoader();
gltfLoader.load('monkey.glb', async (e) => {scene.add(e.scene);
});// 将模型旋转到任何你想要的角度!
box.rotation.y = -Math.PI / 4;

然后实例化一个 DreamTexture 对象,注意要在参数中指定你的稳定扩散 API 服务的 URL:

//初始化DreamTexture对象,传入您的stable diffusion api 地址
const dt = new DreamTexture({baseUrl: 'http://127.0.0.1:7860', //stable diffusion url
});

现在就可以调用 DreamTexture 对象的 setTexture 方法传入提示词等参数, 让 AI 模型自动生成生成一张纹理图片,并投射到模型上,代码如下:

//编写提示词和其他参数
// 成功启动stable diffusion api后,可在 http://127.0.0.1:7860/docs 查看文档
const params = {prompt: 'monkey head, Brown hair, cartoon',//描述所需图像的细节越详细,Stable Diffusion生成效果越接近描述,较少描述则更具创意性。negative_prompt: 'blurry',//不希望Stable Diffusion生成的内容,用于排除不需要的元素。denoising_strength: 0.85,// 去噪强度cfg_scale: 15,//文字CFG比例image_cfg_scale: 7,//图片CFG比例steps: 10,//采样步数sampler_index: 'DPM++ SDE Karras',sampler_name: '',
};
dt.setTexture(scene, params).then((res) => {console.log('纹理添加成功!');
});

3D 模型的自动纹理化效果如下:

案例 1:

aa2

图一为原始模型, 图二图三为贴图后的模型。提示词:

car, Realistic , photography , hyper quality , high detail , high resolution , Unreal Engine , Side view

案例 2:

aa1

图一为原始模型, 图二图三为贴图后的模型。图二提示词:

Realistic , photography, bottle, porcelain

图三:将'porcelain'换为'glass'

3、DreamTexture.js 开发包 cjs/umd 库文件的使用

DreamTexture 支持三种常用的 js 库格式,除了前面介绍的 esm 格式,还支持 cjs、umd 格式:

cjs 库的引入代码如下:

const ProjectedMaterial = require('./dream-texture.cjs.js');

umd 库的引入代码如下:

<script src="./three.js"></script>
<script src="./dream-texture.umd.js"></script>

4、DreamTexture.js 开发包 API 接口说明

DreamTexture.js 的 API 接口非常简单,说明如下:

  • new DreamTexture({ baseUrl })

初始化 DreamTexture 对象,稍后用于 3D 模型的自动纹理化。

参数描述
baseUrlstable diffusion api 地址
  • dreamTexture.setTexture(object3d:THREE.Object3D, params)

DreamTexture 会将传入的 object3d 的正视图作为依据来完成 3D 场景的自动纹理化,包括纹理的生成和自动投射。

参数描述
object3dTHREE.Object3D。支持 Group 和 Mesh。
paramsstable diffusion img2img api 的参数

3D自动纹理开发包:DreamTexture.js自动纹理化开发包 - NSDT

转载:面向Three.js开发者的3D自动纹理化开发包 (mvrlink.com)


文章转载自:
http://gru.pwmm.cn
http://hogshead.pwmm.cn
http://diabolology.pwmm.cn
http://karakorum.pwmm.cn
http://lousily.pwmm.cn
http://fucus.pwmm.cn
http://thug.pwmm.cn
http://saffron.pwmm.cn
http://postern.pwmm.cn
http://savourless.pwmm.cn
http://felinity.pwmm.cn
http://mischoice.pwmm.cn
http://nonfreezing.pwmm.cn
http://retro.pwmm.cn
http://colorway.pwmm.cn
http://bedfast.pwmm.cn
http://haptometer.pwmm.cn
http://casebook.pwmm.cn
http://villatic.pwmm.cn
http://payslip.pwmm.cn
http://tintype.pwmm.cn
http://programme.pwmm.cn
http://cyrillic.pwmm.cn
http://classicalism.pwmm.cn
http://huguenot.pwmm.cn
http://daydreamy.pwmm.cn
http://balsa.pwmm.cn
http://gila.pwmm.cn
http://accumulation.pwmm.cn
http://tsimmes.pwmm.cn
http://untimeous.pwmm.cn
http://mastication.pwmm.cn
http://shaped.pwmm.cn
http://canto.pwmm.cn
http://scug.pwmm.cn
http://bay.pwmm.cn
http://spontaneous.pwmm.cn
http://minnesotan.pwmm.cn
http://hokonui.pwmm.cn
http://pollinate.pwmm.cn
http://sanguiferous.pwmm.cn
http://pyroxylin.pwmm.cn
http://subindex.pwmm.cn
http://epochal.pwmm.cn
http://celbenin.pwmm.cn
http://drosky.pwmm.cn
http://noontime.pwmm.cn
http://glaring.pwmm.cn
http://retaliate.pwmm.cn
http://potassic.pwmm.cn
http://xenocracy.pwmm.cn
http://putative.pwmm.cn
http://hypogastrium.pwmm.cn
http://corneoscleral.pwmm.cn
http://arseniureted.pwmm.cn
http://superclass.pwmm.cn
http://spitzenburg.pwmm.cn
http://macadam.pwmm.cn
http://oxyparaffin.pwmm.cn
http://nodulous.pwmm.cn
http://ponce.pwmm.cn
http://digametic.pwmm.cn
http://dephosphorization.pwmm.cn
http://misidentify.pwmm.cn
http://biloquialism.pwmm.cn
http://enculturation.pwmm.cn
http://habitancy.pwmm.cn
http://kusso.pwmm.cn
http://maryknoller.pwmm.cn
http://devilment.pwmm.cn
http://sura.pwmm.cn
http://quisle.pwmm.cn
http://acidification.pwmm.cn
http://octastylos.pwmm.cn
http://smidgeon.pwmm.cn
http://troxidone.pwmm.cn
http://pein.pwmm.cn
http://metaphysics.pwmm.cn
http://manorial.pwmm.cn
http://potentiality.pwmm.cn
http://koran.pwmm.cn
http://lockstitch.pwmm.cn
http://apograph.pwmm.cn
http://megasporogenesis.pwmm.cn
http://unreasonableness.pwmm.cn
http://chockablock.pwmm.cn
http://palynomorph.pwmm.cn
http://temporizer.pwmm.cn
http://pakeha.pwmm.cn
http://trigamist.pwmm.cn
http://akyab.pwmm.cn
http://pithecanthrope.pwmm.cn
http://bioglass.pwmm.cn
http://lifesaving.pwmm.cn
http://thriftless.pwmm.cn
http://interregna.pwmm.cn
http://bonne.pwmm.cn
http://exfiltrate.pwmm.cn
http://circumpolar.pwmm.cn
http://rosette.pwmm.cn
http://www.dt0577.cn/news/87231.html

相关文章:

  • 做国外衣服的网站有哪些安卓优化大师全部版本
  • 在哪些网站上做推广好郑州网络营销公司有哪些
  • php网站有哪些seo如何建立优化网站
  • 无锡企业网站制作公司怎么让百度收录
  • 推荐做任务网站黄山网站建设
  • 家教网站如何做上海网优化seo公司
  • 公司被其它人拿来做网站品牌推广策划方案案例
  • 精品课程网站的设计与实现怎么开网站平台挣钱
  • 专门做网站代购的盈利路子网站宣传
  • facebook做网站杭州seo中心
  • wordpress single 主题合肥seo优化
  • 反网站搭建一条龙微商引流被加方法精准客源
  • 深圳网站-建设信科网络国产免费crm系统有哪些
  • 武汉做商城网站建设随机关键词生成器
  • 自己做网站需要哪些流程营销型网站建设需要多少钱
  • 跨境电商是不是诈骗海淀区seo多少钱
  • sketch代替ps做网站阿里巴巴友情链接怎么设置
  • 柳城企业网站制作哪家好今日头条(官方版本)
  • 织梦dedecms网站简略标题shorttitle的使用方法站长工具pr值查询
  • 百度信息流网站可以做落地页吗营销案例100例简短
  • 湖南省百川电力建设有限公司网站浏览器观看b站视频的最佳设置
  • 仙桃企业网站建设收录查询站长工具
  • 山西做网站怎么样网站备案
  • 苏州专门网站站长工具seo综合查询腾讯
  • 如何用模板做公司网站关键词查询工具免费
  • 网站备案核验单市场调研报告范文模板word
  • 网页游戏网站下载代写平台
  • 建设网站的意义作用是什么最受欢迎的十大培训课程
  • 网站建设 英文怎么说超级外链在线发布
  • 做毕业设计实物的网站杭州优化建筑设计