OpenGL too hard for me, is there any alternative?

I have read the famous "Learning Modern 3d Graphics Programming" til the hierarchy chapter but it seems way too hard to me, or at least too long to learn (I have to do a project to render a 3d landscape in which the camera can move + lighting effects + objects). I have used the java translation of the gltut and I still need to do my project in java. So here's the question: Is the

OpenGL对我来说太难了,有没有其他的选择?

我已阅读着名的“学习现代3D图形编程”直到层次结构章节,但对我来说似乎太难了,或者至少太长时间学习(我必须做一个项目来渲染相机可以移动的3D景观+灯光效果+物体)。 我已经使用了gltut的java翻译,我仍然需要在java中完成我的项目。 所以这里有一个问题:是否有任何引擎,对于初学者来说更简单一些,我们可以轻松渲染场景,而不是一个简单的makeScene()就可以完成所有工作的引擎。 我听说过jmonkeyengine,那是一个很

ant warning: "'includeantruntime' was not set"

I receive the following warning: [javac] build.xml:9: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds What does this mean? Ant Runtime Simply set includeantruntime="false" : <javac includeantruntime="false" ...>...</javac> If you have to use the javac -task multiple times you might want to consider

蚂蚁警告:“'包括行为'没有设置”

我收到以下警告: [javac] build.xml:9: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds 这是什么意思? Ant运行时 简单地设置includeantruntime="false" : <javac includeantruntime="false" ...>...</javac> 如果您必须多次使用javac -task,则可能需要考虑使用PreSetDef来定义自己的始终设置includeantruntime=&quo

How can I pass a list of sources to compile to the javac task?

How can I get the javac task to use an existing fileset? In my build.xml I have created several filesets to be used in multiple places throughout build file. Here is how they have been defined: <fileset dir = "${src}" id = "java.source.all"> <include name = "**/*.java" /> </fileset> <fileset dir = "${src}" id = "java.source.examples">

我如何将源代码清单编译成javac任务?

我怎样才能让javac任务使用现有的文件集? 在我的build.xml中,我已经创建了多个文件集,以便在整个构建文件的多个位置使用。 以下是他们的定义: <fileset dir = "${src}" id = "java.source.all"> <include name = "**/*.java" /> </fileset> <fileset dir = "${src}" id = "java.source.examples"> <include name = "**/Examples/**/*.java" /> <

How do I create an EAR file with an ant build including certain files?

I'm using eclipse to build an ear file using ant. I'm using oc4j, and I want to make sure that orion-application.xml is included in the build. What I'm currently using but does not work is: <target name="ear" depends=""> <echo>Building the ear file</echo> <copy todir="${build.dir}/META-INF"> <fileset dir="${conf.dir}" includes="orion-ap

如何创建包含特定文件的ant版本的EAR文件?

我使用eclipse来构建一个使用ant的ear文件。 我正在使用oc4j,并且我想确保构建中包含orion-application.xml。 我目前使用但不起作用的是: <target name="ear" depends=""> <echo>Building the ear file</echo> <copy todir="${build.dir}/META-INF"> <fileset dir="${conf.dir}" includes="orion-application.xml"/> </copy> <ear destfile="${dist.di

android java opencv 2.4 convexhull convexdefect

Open-CV 2.4 Android-Java: i have searched for contours (list of MatofPoint) like this: Imgproc.findContours(roi_mat, contours, hierarchy, cfg.retMode, cfg.apxMode); and then the convexhull (has to be a list of MatofInt ) for (int k=0; k < contours.size(); k++){ Imgproc.convexHull(contours.get(k), hull.get(k)); } The convexhull wants a MatofInt but the drawcontours wants a MatofPoin

android java opencv 2.4凸凹凸起

Open-CV 2.4 Android-Java: 我已经搜索了轮廓(MatofPoint列表),如下所示: Imgproc.findContours(roi_mat, contours, hierarchy, cfg.retMode, cfg.apxMode); 然后凸起(必须是MatofInt的列表) for (int k=0; k < contours.size(); k++){ Imgproc.convexHull(contours.get(k), hull.get(k)); } 凸阜想要一个MatofInt,但drawcontours想要一个MatofPoint。那么该怎么做? Thx提前.. 编辑 :@ OpenCV4Andr

Spring Boot and Google SQL

I am using springboot and this guide https://github.com/GoogleCloudPlatform/cloud-sql-mysql-socket-factory. This guide help me to generate my jdbc url. I used this jdbc url on my spring boot app but it always bring the error: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework

Spring Boot和Google SQL

我正在使用springboot和本指南https://github.com/GoogleCloudPlatform/cloud-sql-mysql-socket-factory。 本指南帮助我生成我的jdbc网址。 我在我的spring启动应用程序中使用了这个jdbc网址,但它总是带来错误: org.springframework.beans.factory.BeanCreationException:在类路径资源[org / springframework / boot / autoconfigure / orm / jpa / HibernateJpaAutoConfiguration.class]中定义名称为'entityManagerF

Spring Transaction Management using aspectj

Have 2 configuration files in a project. Both having Transaction management for different datasources using aspectj as follows- context1.xml <!-- Creating TransactionManager Bean, since JDBC we are creating of type DataSourceTransactionManager --> <bean id="transactionManager1" class="org.springframework.jdbc.datasource.DataSourceTransactionManager"> <property name

Spring使用aspectj进行事务管理

在一个项目中有2个配置文件。 对于使用aspectj的不同数据源的事务管理如下 - context1.xml <!-- Creating TransactionManager Bean, since JDBC we are creating of type DataSourceTransactionManager --> <bean id="transactionManager1" class="org.springframework.jdbc.datasource.DataSourceTransactionManager"> <property name="dataSource" ref="dataSource1" /> </bean> &l

detachCopy is working on JDO with ObjectDB?

pm.detachCopy is working? I'm making a Spring + ObjectDB(JDO) program. PersistenceManager#detachCopy returns a transient object despite of @PersistenceCapable:detachable is true. here is a sample code. I hava a simple test model(POJO) @PersistenceCapable(identityType = IdentityType.APPLICATION, detachable="true") public class TestModel { @Persistent(valueStrategy=IdGeneratorStrategy.

detachCopy使用ObjectDB处理JDO?

pm.detachCopy正在运行? 我正在制作一个Spring + ObjectDB(JDO)程序。 PersistenceManager#detachCopy返回一个瞬态对象,尽管@PersistenceCapable:detachable为true。 这里是一个示例代码。 我有一个简单的测试模型(POJO) @PersistenceCapable(identityType = IdentityType.APPLICATION, detachable="true") public class TestModel { @Persistent(valueStrategy=IdGeneratorStrategy.IDENTITY) @PrimaryKey priv

OOP and inheritance of private fields

In C# the spec says: Instance constructors, destructors, and static constructors are not inherited, but all other members are, regardless of their declared accessibility (§3.5). However, depending on their declared accessibility, inherited members might not be accessible in a derived class. so private fields are inherited into a derived class but they are not accessible. However the Java s

OOP和私人领域的继承

在C#中规范说: 实例构造函数,析构函数和静态构造函数不会被继承,但所有其他成员无论其声明的可访问性如何(第3.5节)。 但是,根据其声明的可访问性,继承的成员可能无法在派生类中访问。 所以私有字段被继承到派生类中,但它们不可访问。 但是Java规范说: 只有被声明为protected或public的类的成员才会被声明在包中声明的子类继承。 所以私有字段不会被继承到派生类中。 什么解释OOP理论? 是正确的C#或Jav

Logging in Liferay user without password

I need to login the user in Liferay by authenticating against an external system. However, I still need to have a valid Liferay session. So, I need to login to Liferay by Asking the username/password from the user Use them to authenticate against the external system. Use just the username (not the password) to authenticate against the Liferay login. Log the user in , if the external sys

在没有密码的情况下登录Liferay用户

我需要通过对外部系统进行身份验证来在Liferay中登录用户。 不过,我仍然需要有一个有效的Liferay会话。 所以,我需要通过登录到Liferay 询问用户的用户名/密码 使用它们对外部系统进行身份验证。 只使用用户名(而不是密码)对Liferay登录进行身份验证。 如果外部系统登录成功,请将用户登录。 我做了几件事情: 自动登录 挂钩到UserLocalService.authenticateByScreenName覆盖 auth.pipeline pre和check = f